arduino-create-agent: init at 1.6.1 (#300694)
[NixPkgs.git] / pkgs / servers / monitoring / prometheus / fastly-exporter.nix
blobfba05cc25c236d1339d3d21faa66a0f04b6377e9
2   lib,
3   buildGoModule,
4   fetchFromGitHub,
5   nixosTests,
6 }:
8 buildGoModule rec {
9   pname = "fastly-exporter";
10   version = "9.0.0";
12   src = fetchFromGitHub {
13     owner = "fastly";
14     repo = "fastly-exporter";
15     rev = "v${version}";
16     hash = "sha256-H7EaNQmgrRomIQo2xm2Qqkud0LMSYFshNv54lRdrEyw=";
17   };
19   vendorHash = "sha256-k/n9muWFtTBv8PxMdevFBeTtAOIiCDrK3GoCGeMtBn4=";
21   passthru.tests = {
22     inherit (nixosTests.prometheus-exporters) fastly;
23   };
25   meta = with lib; {
26     description = "Prometheus exporter for the Fastly Real-time Analytics API";
27     homepage = "https://github.com/fastly/fastly-exporter";
28     license = licenses.asl20;
29     maintainers = teams.deshaw.members;
30     mainProgram = "fastly-exporter";
31   };