depot/pkgs/servers/monitoring/prometheus/graphite-exporter.nix
Luke Granger-Brown 57725ef3ec Squashed 'third_party/nixpkgs/' content from commit 76612b17c0ce
git-subtree-dir: third_party/nixpkgs
git-subtree-split: 76612b17c0ce71689921ca12d9ffdc9c23ce40b2
2024-11-10 23:59:47 +00:00

36 lines
971 B
Nix

{ lib, buildGoModule, fetchFromGitHub, nixosTests }:
buildGoModule rec {
pname = "graphite-exporter";
version = "0.15.2";
src = fetchFromGitHub {
owner = "prometheus";
repo = "graphite_exporter";
rev = "v${version}";
hash = "sha256-GiXg4FkEDveKI3JPRJ5bYmdfmcum5abN70ESwH0S7EA=";
};
vendorHash = "sha256-SXxjCXWJcVAyTjH77ga1pFdudUjQfDJCD78fiDlw9Y0=";
checkFlags =
let
skippedTests = [
"TestBacktracking"
"TestInconsistentLabelsE2E"
"TestIssue111"
"TestIssue61"
"TestIssue90"
];
in
[ "-skip=^${builtins.concatStringsSep "$|^" skippedTests}$" ];
passthru.tests = { inherit (nixosTests.prometheus-exporters) graphite; };
meta = {
description = "Exporter for metrics exported in the Graphite plaintext protocol";
homepage = "https://github.com/prometheus/graphite_exporter";
license = lib.licenses.asl20;
maintainers = [ lib.maintainers.misterio77 ];
};
}