diff options
| author | Max Audron <audron@cocaine.farm> | 2025-08-01 02:01:20 +0200 |
|---|---|---|
| committer | Max Audron <audron@cocaine.farm> | 2025-08-01 02:01:20 +0200 |
| commit | ad91208ae1cea92566ad03d3b4cdd68f0e71c55a (patch) | |
| tree | f82b0f7637ed28a9f7d1afb4214563b2e7331d80 /pkgs/prometheus-minecraft-exporter/default.nix | |
| parent | more monitoring & scrape config shortcuts (diff) | |
add minecraft prometheus exporter
Diffstat (limited to 'pkgs/prometheus-minecraft-exporter/default.nix')
| -rw-r--r-- | pkgs/prometheus-minecraft-exporter/default.nix | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/pkgs/prometheus-minecraft-exporter/default.nix b/pkgs/prometheus-minecraft-exporter/default.nix new file mode 100644 index 0000000..396f092 --- /dev/null +++ b/pkgs/prometheus-minecraft-exporter/default.nix @@ -0,0 +1,24 @@ +{ lib, + buildGoModule, + fetchFromGitHub, + ... +}: + +buildGoModule { + pname = "prometheus-minecraft-exporter"; + version = "0.22.0"; + + src = fetchFromGitHub { + owner = "dirien"; + repo = "minecraft-prometheus-exporter"; + rev = "v0.22.0"; + hash = "sha256-jjdFbGyK+bHgZx/UAbBygCnY/9f9QxgHGqxUusR7ro8="; + }; + + vendorHash = "sha256-Smlkqig7UVTSOrBGhEExbqefqh3Gv3LWbNOUdpJhLtQ="; + + meta = { + description = "collect player metrics from a minecraft server"; + homepage = "https://github.com/dirien/minecraft-prometheus-exporter"; + }; +} |
