Files
nixpkgs/pkgs/servers/monitoring/prometheus/fastly-exporter.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

33 lines
726 B
Nix
Raw Normal View History

2025-10-09 14:15:47 +02:00
{
lib,
buildGoModule,
fetchFromGitHub,
nixosTests,
}:
buildGoModule rec {
pname = "fastly-exporter";
version = "9.5.0";
src = fetchFromGitHub {
owner = "fastly";
repo = "fastly-exporter";
rev = "v${version}";
hash = "sha256-W3VVnI83RKwNkQj4njvZS+ANklNR27BWIrJmdcmSq2I=";
};
vendorHash = "sha256-wbkm6b8xTGAQ4bCjIOVvJVA7sckPxtDiwMcjglaL/Pk=";
passthru.tests = {
inherit (nixosTests.prometheus-exporters) fastly;
};
meta = with lib; {
description = "Prometheus exporter for the Fastly Real-time Analytics API";
homepage = "https://github.com/fastly/fastly-exporter";
license = licenses.asl20;
teams = [ teams.deshaw ];
mainProgram = "fastly-exporter";
};
}