diff options
author | Martin Weinelt <mweinelt@users.noreply.github.com> | 2024-02-22 16:37:51 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-02-22 16:37:51 +0100 |
commit | 878609256bb772bb03c13db4db105b5cb7e1aa2d (patch) | |
tree | b250fd800c2573ddeb12123a6fa971c58752e9c3 /pkgs/servers/monitoring/prometheus | |
parent | 6604bca690821caa56539d5cdca8d69598f3eaa7 (diff) | |
parent | d679c69737ffc14b8d00339fa52ec45ae5fce9cb (diff) | |
download | nixlib-878609256bb772bb03c13db4db105b5cb7e1aa2d.tar nixlib-878609256bb772bb03c13db4db105b5cb7e1aa2d.tar.gz nixlib-878609256bb772bb03c13db4db105b5cb7e1aa2d.tar.bz2 nixlib-878609256bb772bb03c13db4db105b5cb7e1aa2d.tar.lz nixlib-878609256bb772bb03c13db4db105b5cb7e1aa2d.tar.xz nixlib-878609256bb772bb03c13db4db105b5cb7e1aa2d.tar.zst nixlib-878609256bb772bb03c13db4db105b5cb7e1aa2d.zip |
Merge pull request #287348 from mweinelt/fastly-exporter-module
nixos/prometheus-fastly-exporter: fix runtime environment, refactor, make things prettier
Diffstat (limited to 'pkgs/servers/monitoring/prometheus')
-rw-r--r-- | pkgs/servers/monitoring/prometheus/fastly-exporter.nix | 19 |
1 files changed, 14 insertions, 5 deletions
diff --git a/pkgs/servers/monitoring/prometheus/fastly-exporter.nix b/pkgs/servers/monitoring/prometheus/fastly-exporter.nix index 0659ead43ccc..ba2d5217e344 100644 --- a/pkgs/servers/monitoring/prometheus/fastly-exporter.nix +++ b/pkgs/servers/monitoring/prometheus/fastly-exporter.nix @@ -1,22 +1,31 @@ -{ lib, buildGoModule, fetchFromGitHub }: +{ lib +, buildGoModule +, fetchFromGitHub +, nixosTests +}: buildGoModule rec { pname = "fastly-exporter"; version = "7.6.1"; src = fetchFromGitHub { - owner = "peterbourgon"; - repo = pname; + owner = "fastly"; + repo = "fastly-exporter"; rev = "v${version}"; - sha256 = "sha256-JUbjWAJ70iq0RCr6U2thbtZ3nmCic9wGtSf2ArRy4uA="; + hash = "sha256-JUbjWAJ70iq0RCr6U2thbtZ3nmCic9wGtSf2ArRy4uA="; }; vendorHash = "sha256-lEaMhJL/sKNOXx0W+QHMG4QUUE6Pc4AqulhgyCMQQNY="; + passthru.tests = { + inherit (nixosTests.prometheus-exporters) fastly; + }; + meta = with lib; { description = "Prometheus exporter for the Fastly Real-time Analytics API"; - homepage = "https://github.com/peterbourgon/fastly-exporter"; + homepage = "https://github.com/fastly/fastly-exporter"; license = licenses.asl20; maintainers = teams.deshaw.members; + mainProgram = "fastly-exporter"; }; } |