2021-01-25 08:26:54 +00:00
|
|
|
{ lib, buildGoPackage, fetchFromGitHub, nixosTests }:
|
2016-06-05 13:59:43 +01:00
|
|
|
|
|
|
|
buildGoPackage rec {
|
2019-08-15 13:41:18 +01:00
|
|
|
pname = "collectd-exporter";
|
2021-05-11 04:55:43 +01:00
|
|
|
version = "0.5.0";
|
2016-06-05 13:59:43 +01:00
|
|
|
rev = version;
|
|
|
|
|
|
|
|
goPackagePath = "github.com/prometheus/collectd_exporter";
|
|
|
|
|
2021-05-11 04:55:43 +01:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
rev = "v${version}";
|
2016-06-06 11:26:56 +01:00
|
|
|
owner = "prometheus";
|
|
|
|
repo = "collectd_exporter";
|
2021-05-11 04:55:43 +01:00
|
|
|
sha256 = "0vb6vnd2j87iqxdl86j30dk65vrv4scprv200xb83203aprngqgh";
|
2016-06-05 13:59:43 +01:00
|
|
|
};
|
|
|
|
|
2020-06-18 11:48:40 +01:00
|
|
|
passthru.tests = { inherit (nixosTests.prometheus-exporters) collectd; };
|
|
|
|
|
2021-01-11 07:54:33 +00:00
|
|
|
meta = with lib; {
|
2016-06-05 13:59:43 +01:00
|
|
|
description = "Relay server for exporting metrics from collectd to Prometheus";
|
2020-04-01 02:11:51 +01:00
|
|
|
homepage = "https://github.com/prometheus/collectd_exporter";
|
2016-06-05 13:59:43 +01:00
|
|
|
license = licenses.asl20;
|
2016-12-01 00:37:37 +00:00
|
|
|
maintainers = with maintainers; [ benley fpletz ];
|
2016-06-05 13:59:43 +01:00
|
|
|
platforms = platforms.unix;
|
|
|
|
};
|
|
|
|
}
|