prometheus-influxdb-exporter: init at 0.8.0
This commit is contained in:
parent
2030abed58
commit
41724be4e6
2 changed files with 39 additions and 0 deletions
pkgs
38
pkgs/servers/monitoring/prometheus/influxdb-exporter.nix
Normal file
38
pkgs/servers/monitoring/prometheus/influxdb-exporter.nix
Normal file
|
@ -0,0 +1,38 @@
|
||||||
|
{ lib, buildGoModule, fetchFromGitHub, nixosTests }:
|
||||||
|
|
||||||
|
buildGoModule rec {
|
||||||
|
pname = "influxdb_exporter";
|
||||||
|
version = "0.8.0";
|
||||||
|
rev = "v${version}";
|
||||||
|
|
||||||
|
src = fetchFromGitHub {
|
||||||
|
inherit rev;
|
||||||
|
owner = "prometheus";
|
||||||
|
repo = "influxdb_exporter";
|
||||||
|
sha256 = "sha256-aNj4ru3yDet+jdcEpckFVaymmjWmKzTMPcTxPMNFbgo=";
|
||||||
|
};
|
||||||
|
|
||||||
|
vendorSha256 = null;
|
||||||
|
|
||||||
|
buildFlagsArray = let
|
||||||
|
goPackagePath = "github.com/prometheus/influxdb_exporter";
|
||||||
|
in ''
|
||||||
|
-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
|
||||||
|
'';
|
||||||
|
|
||||||
|
passthru.tests = { inherit (nixosTests.prometheus-exporters) influxdb; };
|
||||||
|
|
||||||
|
meta = with lib; {
|
||||||
|
description = "Prometheus exporter that accepts InfluxDB metrics";
|
||||||
|
homepage = "https://github.com/prometheus/influxdb_exporter";
|
||||||
|
license = licenses.asl20;
|
||||||
|
maintainers = with maintainers; [ hexa ];
|
||||||
|
platforms = platforms.unix;
|
||||||
|
};
|
||||||
|
}
|
|
@ -20118,6 +20118,7 @@ in
|
||||||
prometheus-fritzbox-exporter = callPackage ../servers/monitoring/prometheus/fritzbox-exporter.nix { };
|
prometheus-fritzbox-exporter = callPackage ../servers/monitoring/prometheus/fritzbox-exporter.nix { };
|
||||||
prometheus-gitlab-ci-pipelines-exporter = callPackage ../servers/monitoring/prometheus/gitlab-ci-pipelines-exporter.nix { };
|
prometheus-gitlab-ci-pipelines-exporter = callPackage ../servers/monitoring/prometheus/gitlab-ci-pipelines-exporter.nix { };
|
||||||
prometheus-haproxy-exporter = callPackage ../servers/monitoring/prometheus/haproxy-exporter.nix { };
|
prometheus-haproxy-exporter = callPackage ../servers/monitoring/prometheus/haproxy-exporter.nix { };
|
||||||
|
prometheus-influxdb-exporter = callPackage ../servers/monitoring/prometheus/influxdb-exporter.nix { };
|
||||||
prometheus-jitsi-exporter = callPackage ../servers/monitoring/prometheus/jitsi-exporter.nix { };
|
prometheus-jitsi-exporter = callPackage ../servers/monitoring/prometheus/jitsi-exporter.nix { };
|
||||||
prometheus-jmx-httpserver = callPackage ../servers/monitoring/prometheus/jmx-httpserver.nix { };
|
prometheus-jmx-httpserver = callPackage ../servers/monitoring/prometheus/jmx-httpserver.nix { };
|
||||||
prometheus-json-exporter = callPackage ../servers/monitoring/prometheus/json-exporter.nix { };
|
prometheus-json-exporter = callPackage ../servers/monitoring/prometheus/json-exporter.nix { };
|
||||||
|
|
Loading…
Reference in a new issue