2024-02-09 01:25:47 +00:00
|
|
|
{ lib
|
|
|
|
, buildGoModule
|
|
|
|
, fetchFromGitHub
|
|
|
|
, nixosTests
|
|
|
|
}:
|
2021-08-12 07:30:27 +00:00
|
|
|
|
|
|
|
buildGoModule rec {
|
|
|
|
pname = "fastly-exporter";
|
2023-07-15 18:18:40 +00:00
|
|
|
version = "7.6.1";
|
2021-08-12 07:30:27 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
2024-02-09 01:25:47 +00:00
|
|
|
owner = "fastly";
|
|
|
|
repo = "fastly-exporter";
|
2021-08-12 07:30:27 +00:00
|
|
|
rev = "v${version}";
|
2024-02-09 01:25:47 +00:00
|
|
|
hash = "sha256-JUbjWAJ70iq0RCr6U2thbtZ3nmCic9wGtSf2ArRy4uA=";
|
2021-08-12 07:30:27 +00:00
|
|
|
};
|
|
|
|
|
2023-07-04 08:23:27 +00:00
|
|
|
vendorHash = "sha256-lEaMhJL/sKNOXx0W+QHMG4QUUE6Pc4AqulhgyCMQQNY=";
|
2021-08-12 07:30:27 +00:00
|
|
|
|
2024-02-09 01:25:47 +00:00
|
|
|
passthru.tests = {
|
|
|
|
inherit (nixosTests.prometheus-exporters) fastly;
|
|
|
|
};
|
|
|
|
|
2021-08-12 07:30:27 +00:00
|
|
|
meta = with lib; {
|
|
|
|
description = "Prometheus exporter for the Fastly Real-time Analytics API";
|
2024-02-09 01:25:47 +00:00
|
|
|
homepage = "https://github.com/fastly/fastly-exporter";
|
2021-08-12 07:30:27 +00:00
|
|
|
license = licenses.asl20;
|
|
|
|
maintainers = teams.deshaw.members;
|
2024-02-09 01:25:47 +00:00
|
|
|
mainProgram = "fastly-exporter";
|
2021-08-12 07:30:27 +00:00
|
|
|
};
|
|
|
|
}
|