2022-12-10 22:40:17 +00:00
|
|
|
{
|
|
|
|
lib,
|
|
|
|
buildGoModule,
|
|
|
|
fetchFromGitHub,
|
|
|
|
nixosTests,
|
|
|
|
}:
|
2021-07-26 11:14:43 +00:00
|
|
|
|
|
|
|
buildGoModule rec {
|
|
|
|
pname = "influxdb_exporter";
|
2024-10-26 04:36:44 +00:00
|
|
|
version = "0.12.0";
|
2021-07-26 11:14:43 +00:00
|
|
|
rev = "v${version}";
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
inherit rev;
|
|
|
|
owner = "prometheus";
|
|
|
|
repo = "influxdb_exporter";
|
2024-10-26 04:36:44 +00:00
|
|
|
hash = "sha256-O3cH7fX29tr/rhsovoYnmTL6CE+sZQKGNj4mq1IV/5U=";
|
2021-07-26 11:14:43 +00:00
|
|
|
};
|
|
|
|
|
2024-10-26 04:36:44 +00:00
|
|
|
vendorHash = "sha256-RCf52lHpF4alljH/CNhCg+zgfvlYbO5WT2rFX63fyyo=";
|
2021-07-26 11:14:43 +00:00
|
|
|
|
2021-07-29 12:19:26 +00:00
|
|
|
ldflags = [
|
|
|
|
"-s"
|
|
|
|
"-w"
|
|
|
|
"-X github.com/prometheus/common/version.Version=${version}"
|
|
|
|
"-X github.com/prometheus/common/version.Revision=${rev}"
|
|
|
|
"-X github.com/prometheus/common/version.Branch=unknown"
|
|
|
|
"-X github.com/prometheus/common/version.BuildUser=nix@nixpkgs"
|
|
|
|
"-X github.com/prometheus/common/version.BuildDate=unknown"
|
|
|
|
];
|
2021-07-26 11:14:43 +00:00
|
|
|
|
|
|
|
passthru.tests = { inherit (nixosTests.prometheus-exporters) influxdb; };
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "Prometheus exporter that accepts InfluxDB metrics";
|
2024-03-19 02:14:51 +00:00
|
|
|
mainProgram = "influxdb_exporter";
|
2021-07-26 11:14:43 +00:00
|
|
|
homepage = "https://github.com/prometheus/influxdb_exporter";
|
2022-12-10 22:40:17 +00:00
|
|
|
changelog = "https://github.com/prometheus/influxdb_exporter/blob/v${version}/CHANGELOG.md";
|
2021-07-26 11:14:43 +00:00
|
|
|
license = licenses.asl20;
|
2024-07-28 14:44:11 +00:00
|
|
|
maintainers = [ ];
|
2021-07-26 11:14:43 +00:00
|
|
|
};
|
|
|
|
}
|