Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s
42 lines
980 B
Nix
42 lines
980 B
Nix
{
|
|
lib,
|
|
buildGoModule,
|
|
fetchFromGitHub,
|
|
nixosTests,
|
|
}:
|
|
|
|
buildGoModule rec {
|
|
pname = "graphite-exporter";
|
|
version = "0.16.0";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "prometheus";
|
|
repo = "graphite_exporter";
|
|
rev = "v${version}";
|
|
hash = "sha256-Dr7I4+gQXZYKUMnf/P9DgLYRb4SRaDnvqvDwHfMpAn0=";
|
|
};
|
|
|
|
vendorHash = "sha256-f/ZJi3C11O+xAfXo544tlJcAt0MnTknuRmw01JXj82k=";
|
|
|
|
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 ];
|
|
};
|
|
}
|