prometheus-exporters: expose tests in exporter definitions
This commit is contained in:
parent
e4fd4b2a71
commit
7449a3274e
@ -1,4 +1,4 @@
|
|||||||
{ stdenv, buildGoModule, fetchFromGitHub }:
|
{ stdenv, buildGoModule, fetchFromGitHub, nixosTests }:
|
||||||
|
|
||||||
buildGoModule rec {
|
buildGoModule rec {
|
||||||
pname = "apcupsd-exporter";
|
pname = "apcupsd-exporter";
|
||||||
@ -13,6 +13,8 @@ buildGoModule rec {
|
|||||||
|
|
||||||
vendorSha256 = "09x8y8pmgfn897hvnk122ry460y12b8a7y5fafri5wn9vxab9r82";
|
vendorSha256 = "09x8y8pmgfn897hvnk122ry460y12b8a7y5fafri5wn9vxab9r82";
|
||||||
|
|
||||||
|
passthru.tests = { inherit (nixosTests.prometheus-exporters) apcupsd; };
|
||||||
|
|
||||||
meta = with stdenv.lib; {
|
meta = with stdenv.lib; {
|
||||||
description = "Provides a Prometheus exporter for the apcupsd Network Information Server (NIS)";
|
description = "Provides a Prometheus exporter for the apcupsd Network Information Server (NIS)";
|
||||||
homepage = "https://github.com/mdlayher/apcupsd_exporter";
|
homepage = "https://github.com/mdlayher/apcupsd_exporter";
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
{ stdenv, buildGoPackage, fetchFromGitHub }:
|
{ stdenv, buildGoPackage, fetchFromGitHub, nixosTests }:
|
||||||
|
|
||||||
buildGoPackage rec {
|
buildGoPackage rec {
|
||||||
pname = "bind_exporter";
|
pname = "bind_exporter";
|
||||||
@ -14,6 +14,8 @@ buildGoPackage rec {
|
|||||||
sha256 = "1nd6pc1z627w4x55vd42zfhlqxxjmfsa9lyn0g6qq19k4l85v1qm";
|
sha256 = "1nd6pc1z627w4x55vd42zfhlqxxjmfsa9lyn0g6qq19k4l85v1qm";
|
||||||
};
|
};
|
||||||
|
|
||||||
|
passthru.tests = { inherit (nixosTests.prometheus-exporters) bind; };
|
||||||
|
|
||||||
meta = with stdenv.lib; {
|
meta = with stdenv.lib; {
|
||||||
description = "Prometheus exporter for bind9 server";
|
description = "Prometheus exporter for bind9 server";
|
||||||
homepage = "https://github.com/digitalocean/bind_exporter";
|
homepage = "https://github.com/digitalocean/bind_exporter";
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
{ stdenv, buildGoPackage, fetchFromGitHub }:
|
{ stdenv, buildGoPackage, fetchFromGitHub, nixosTests }:
|
||||||
|
|
||||||
buildGoPackage rec {
|
buildGoPackage rec {
|
||||||
pname = "blackbox_exporter";
|
pname = "blackbox_exporter";
|
||||||
@ -17,6 +17,8 @@ buildGoPackage rec {
|
|||||||
# dns-lookup is performed for the tests
|
# dns-lookup is performed for the tests
|
||||||
doCheck = false;
|
doCheck = false;
|
||||||
|
|
||||||
|
passthru.tests = { inherit (nixosTests.prometheus-exporters) blackbox; };
|
||||||
|
|
||||||
meta = with stdenv.lib; {
|
meta = with stdenv.lib; {
|
||||||
description = "Blackbox probing of endpoints over HTTP, HTTPS, DNS, TCP and ICMP";
|
description = "Blackbox probing of endpoints over HTTP, HTTPS, DNS, TCP and ICMP";
|
||||||
homepage = "https://github.com/prometheus/blackbox_exporter";
|
homepage = "https://github.com/prometheus/blackbox_exporter";
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
{ stdenv, buildGoPackage, fetchFromGitHub }:
|
{ stdenv, buildGoPackage, fetchFromGitHub, nixosTests }:
|
||||||
|
|
||||||
buildGoPackage rec {
|
buildGoPackage rec {
|
||||||
pname = "collectd-exporter";
|
pname = "collectd-exporter";
|
||||||
@ -14,6 +14,8 @@ buildGoPackage rec {
|
|||||||
sha256 = "1p0kb7c8g0r0sp5a6xrx8vnwbw14hhwlqzk4n2xx2y8pvnbivajz";
|
sha256 = "1p0kb7c8g0r0sp5a6xrx8vnwbw14hhwlqzk4n2xx2y8pvnbivajz";
|
||||||
};
|
};
|
||||||
|
|
||||||
|
passthru.tests = { inherit (nixosTests.prometheus-exporters) collectd; };
|
||||||
|
|
||||||
meta = with stdenv.lib; {
|
meta = with stdenv.lib; {
|
||||||
description = "Relay server for exporting metrics from collectd to Prometheus";
|
description = "Relay server for exporting metrics from collectd to Prometheus";
|
||||||
homepage = "https://github.com/prometheus/collectd_exporter";
|
homepage = "https://github.com/prometheus/collectd_exporter";
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
{ lib, fetchFromGitHub, python3Packages }:
|
{ lib, fetchFromGitHub, python3Packages, nixosTests }:
|
||||||
|
|
||||||
python3Packages.buildPythonApplication rec {
|
python3Packages.buildPythonApplication rec {
|
||||||
pname = "prometheus-cups-exporter-unstable";
|
pname = "prometheus-cups-exporter-unstable";
|
||||||
@ -26,6 +26,8 @@ python3Packages.buildPythonApplication rec {
|
|||||||
--add-flags "$out/share/cups_exporter.py"
|
--add-flags "$out/share/cups_exporter.py"
|
||||||
'';
|
'';
|
||||||
|
|
||||||
|
passthru.tests = { inherit (nixosTests.prometheus-exporters) cups; };
|
||||||
|
|
||||||
meta = with lib; {
|
meta = with lib; {
|
||||||
description = "A simple prometheus exporter for cups implemented in python";
|
description = "A simple prometheus exporter for cups implemented in python";
|
||||||
homepage = "https://github.com/ThoreKr/cups_exporter";
|
homepage = "https://github.com/ThoreKr/cups_exporter";
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
{ stdenv, buildGoModule, fetchFromGitHub }:
|
{ stdenv, buildGoModule, fetchFromGitHub, nixosTests }:
|
||||||
|
|
||||||
buildGoModule rec {
|
buildGoModule rec {
|
||||||
pname = "dnsmasq_exporter";
|
pname = "dnsmasq_exporter";
|
||||||
@ -13,10 +13,12 @@ buildGoModule rec {
|
|||||||
|
|
||||||
vendorSha256 = "1dqpa180pbdi2gcmp991d4cry560mx5rm5l9x065s9n9gnd38hvl";
|
vendorSha256 = "1dqpa180pbdi2gcmp991d4cry560mx5rm5l9x065s9n9gnd38hvl";
|
||||||
|
|
||||||
|
passthru.tests = { inherit (nixosTests.prometheus-exporters) dnsmasq; };
|
||||||
|
|
||||||
meta = with stdenv.lib; {
|
meta = with stdenv.lib; {
|
||||||
inherit (src.meta) homepage;
|
inherit (src.meta) homepage;
|
||||||
description = "A dnsmasq exporter for Prometheus";
|
description = "A dnsmasq exporter for Prometheus";
|
||||||
license = licenses.asl20;
|
license = licenses.asl20;
|
||||||
maintainers = with maintainers; [ willibutz globin ma27 ];
|
maintainers = with maintainers; [ willibutz globin ma27 ];
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
{ stdenv, buildGoPackage, fetchFromGitHub }:
|
{ stdenv, buildGoPackage, fetchFromGitHub, nixosTests }:
|
||||||
|
|
||||||
buildGoPackage rec {
|
buildGoPackage rec {
|
||||||
pname = "dovecot_exporter";
|
pname = "dovecot_exporter";
|
||||||
@ -15,6 +15,8 @@ buildGoPackage rec {
|
|||||||
|
|
||||||
goDeps = ./dovecot-exporter-deps.nix;
|
goDeps = ./dovecot-exporter-deps.nix;
|
||||||
|
|
||||||
|
passthru.tests = { inherit (nixosTests.prometheus-exporters) dovecot; };
|
||||||
|
|
||||||
meta = with stdenv.lib; {
|
meta = with stdenv.lib; {
|
||||||
inherit (src.meta) homepage;
|
inherit (src.meta) homepage;
|
||||||
description = "Prometheus metrics exporter for Dovecot";
|
description = "Prometheus metrics exporter for Dovecot";
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
{ stdenv, buildGoPackage, fetchFromGitHub }:
|
{ stdenv, buildGoPackage, fetchFromGitHub, nixosTests }:
|
||||||
|
|
||||||
buildGoPackage rec {
|
buildGoPackage rec {
|
||||||
pname = "fritzbox-exporter";
|
pname = "fritzbox-exporter";
|
||||||
@ -16,6 +16,8 @@ buildGoPackage rec {
|
|||||||
|
|
||||||
goDeps = ./fritzbox-exporter-deps.nix;
|
goDeps = ./fritzbox-exporter-deps.nix;
|
||||||
|
|
||||||
|
passthru.tests = { inherit (nixosTests.prometheus-exporters) fritzbox; };
|
||||||
|
|
||||||
meta = with stdenv.lib; {
|
meta = with stdenv.lib; {
|
||||||
description = "Prometheus Exporter for FRITZ!Box (TR64 and UPnP)";
|
description = "Prometheus Exporter for FRITZ!Box (TR64 and UPnP)";
|
||||||
homepage = "https://github.com/ndecker/fritzbox_exporter";
|
homepage = "https://github.com/ndecker/fritzbox_exporter";
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
# This file was generated by go2nix.
|
# This file was generated by go2nix.
|
||||||
{ buildGoPackage, fetchFromGitHub, fetchpatch, lib }:
|
{ buildGoPackage, fetchFromGitHub, fetchpatch, lib, nixosTests }:
|
||||||
|
|
||||||
buildGoPackage {
|
buildGoPackage {
|
||||||
pname = "prometheus-json-exporter";
|
pname = "prometheus-json-exporter";
|
||||||
@ -21,6 +21,8 @@ buildGoPackage {
|
|||||||
sha256 = "0mc5axhd2bykci41dgswl4r1552d70jsmb17lbih7czhsy6rgmrm";
|
sha256 = "0mc5axhd2bykci41dgswl4r1552d70jsmb17lbih7czhsy6rgmrm";
|
||||||
})];
|
})];
|
||||||
|
|
||||||
|
passthru.tests = { inherit (nixosTests.prometheus-exporters) json; };
|
||||||
|
|
||||||
meta = with lib; {
|
meta = with lib; {
|
||||||
description = "A prometheus exporter which scrapes remote JSON by JSONPath";
|
description = "A prometheus exporter which scrapes remote JSON by JSONPath";
|
||||||
homepage = "https://github.com/kawamuray/prometheus-json-exporter";
|
homepage = "https://github.com/kawamuray/prometheus-json-exporter";
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
{ stdenv, buildGoModule, fetchFromGitHub }:
|
{ stdenv, buildGoModule, fetchFromGitHub, nixosTests }:
|
||||||
|
|
||||||
buildGoModule rec {
|
buildGoModule rec {
|
||||||
pname = "keylight-exporter";
|
pname = "keylight-exporter";
|
||||||
@ -13,6 +13,8 @@ buildGoModule rec {
|
|||||||
|
|
||||||
vendorSha256 = "0w065ls8dp687jmps4xdffcarss1wyls14dngr43g58xjw6519gb";
|
vendorSha256 = "0w065ls8dp687jmps4xdffcarss1wyls14dngr43g58xjw6519gb";
|
||||||
|
|
||||||
|
passthru.tests = { inherit (nixosTests.prometheus-exporters) keylight; };
|
||||||
|
|
||||||
meta = with stdenv.lib; {
|
meta = with stdenv.lib; {
|
||||||
homepage = "https://github.com/mdlayher/keylight_exporter";
|
homepage = "https://github.com/mdlayher/keylight_exporter";
|
||||||
description = "Prometheus exporter for Elgato Key Light devices.";
|
description = "Prometheus exporter for Elgato Key Light devices.";
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
{ stdenv, buildGoModule, fetchFromGitHub }:
|
{ stdenv, buildGoModule, fetchFromGitHub, nixosTests }:
|
||||||
|
|
||||||
buildGoModule rec {
|
buildGoModule rec {
|
||||||
pname = "lndmon-unstable";
|
pname = "lndmon-unstable";
|
||||||
@ -13,6 +13,8 @@ buildGoModule rec {
|
|||||||
|
|
||||||
vendorSha256 = "083h2ksnqmcr48958r5pag9a28xvljpc3prip6wn70ifp2wpjpin";
|
vendorSha256 = "083h2ksnqmcr48958r5pag9a28xvljpc3prip6wn70ifp2wpjpin";
|
||||||
|
|
||||||
|
passthru.tests = { inherit (nixosTests.prometheus-exporters) lnd; };
|
||||||
|
|
||||||
meta = with stdenv.lib; {
|
meta = with stdenv.lib; {
|
||||||
inherit (src.meta) homepage;
|
inherit (src.meta) homepage;
|
||||||
description = "Prometheus exporter for lnd (Lightning Network Daemon)";
|
description = "Prometheus exporter for lnd (Lightning Network Daemon)";
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
{ stdenv, buildGoPackage, fetchFromGitHub, installShellFiles }:
|
{ stdenv, buildGoPackage, fetchFromGitHub, installShellFiles, nixosTests }:
|
||||||
|
|
||||||
buildGoPackage {
|
buildGoPackage {
|
||||||
pname = "mailexporter";
|
pname = "mailexporter";
|
||||||
@ -22,6 +22,8 @@ buildGoPackage {
|
|||||||
installManPage $src/man/mailexporter.conf.5
|
installManPage $src/man/mailexporter.conf.5
|
||||||
'';
|
'';
|
||||||
|
|
||||||
|
passthru.tests = { inherit (nixosTests.prometheus-exporters) mail; };
|
||||||
|
|
||||||
meta = with stdenv.lib; {
|
meta = with stdenv.lib; {
|
||||||
description = "Export Prometheus-style metrics about mail server functionality";
|
description = "Export Prometheus-style metrics about mail server functionality";
|
||||||
homepage = "https://github.com/cherti/mailexporter";
|
homepage = "https://github.com/cherti/mailexporter";
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
{ stdenv, buildGoModule, fetchFromGitHub }:
|
{ stdenv, buildGoModule, fetchFromGitHub, nixosTests }:
|
||||||
|
|
||||||
buildGoModule rec {
|
buildGoModule rec {
|
||||||
pname = "mikrotik-exporter-unstable";
|
pname = "mikrotik-exporter-unstable";
|
||||||
@ -13,10 +13,12 @@ buildGoModule rec {
|
|||||||
|
|
||||||
vendorSha256 = "0i5x4d3ra0s41knmybbg8gnjxgraxkid6y3gfkjwa65xcbp7hr7q";
|
vendorSha256 = "0i5x4d3ra0s41knmybbg8gnjxgraxkid6y3gfkjwa65xcbp7hr7q";
|
||||||
|
|
||||||
|
passthru.tests = { inherit (nixosTests.prometheus-exporters) mikrotik; };
|
||||||
|
|
||||||
meta = with stdenv.lib; {
|
meta = with stdenv.lib; {
|
||||||
inherit (src.meta) homepage;
|
inherit (src.meta) homepage;
|
||||||
description = "Prometheus MikroTik device(s) exporter";
|
description = "Prometheus MikroTik device(s) exporter";
|
||||||
license = licenses.bsd3;
|
license = licenses.bsd3;
|
||||||
maintainers = with maintainers; [ mmilata ];
|
maintainers = with maintainers; [ mmilata ];
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
{ lib, fetchFromGitHub, buildGoPackage }:
|
{ lib, fetchFromGitHub, buildGoPackage, nixosTests }:
|
||||||
|
|
||||||
buildGoPackage rec {
|
buildGoPackage rec {
|
||||||
pname = "prometheus-nextcloud-exporter";
|
pname = "prometheus-nextcloud-exporter";
|
||||||
@ -17,6 +17,8 @@ buildGoPackage rec {
|
|||||||
|
|
||||||
doCheck = true;
|
doCheck = true;
|
||||||
|
|
||||||
|
passthru.tests = { inherit (nixosTests.prometheus-exporters) nextcloud; };
|
||||||
|
|
||||||
meta = with lib; {
|
meta = with lib; {
|
||||||
description = "Prometheus exporter for Nextcloud servers.";
|
description = "Prometheus exporter for Nextcloud servers.";
|
||||||
homepage = "https://github.com/xperimental/nextcloud-exporter";
|
homepage = "https://github.com/xperimental/nextcloud-exporter";
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
{ stdenv, buildGoPackage, fetchFromGitHub }:
|
{ stdenv, buildGoPackage, fetchFromGitHub, nixosTests }:
|
||||||
|
|
||||||
buildGoPackage rec {
|
buildGoPackage rec {
|
||||||
pname = "nginx_exporter";
|
pname = "nginx_exporter";
|
||||||
@ -19,6 +19,8 @@ buildGoPackage rec {
|
|||||||
|
|
||||||
doCheck = true;
|
doCheck = true;
|
||||||
|
|
||||||
|
passthru.tests = { inherit (nixosTests.prometheus-exporters) nginx; };
|
||||||
|
|
||||||
meta = with stdenv.lib; {
|
meta = with stdenv.lib; {
|
||||||
description = "NGINX Prometheus Exporter for NGINX and NGINX Plus";
|
description = "NGINX Prometheus Exporter for NGINX and NGINX Plus";
|
||||||
homepage = "https://github.com/nginxinc/nginx-prometheus-exporter";
|
homepage = "https://github.com/nginxinc/nginx-prometheus-exporter";
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
{ stdenv, buildGoPackage, fetchFromGitHub }:
|
{ stdenv, buildGoPackage, fetchFromGitHub, nixosTests }:
|
||||||
|
|
||||||
buildGoPackage rec {
|
buildGoPackage rec {
|
||||||
pname = "node_exporter";
|
pname = "node_exporter";
|
||||||
@ -23,6 +23,8 @@ buildGoPackage rec {
|
|||||||
-X ${goPackagePath}/vendor/github.com/prometheus/common/version.Revision=${rev}
|
-X ${goPackagePath}/vendor/github.com/prometheus/common/version.Revision=${rev}
|
||||||
'';
|
'';
|
||||||
|
|
||||||
|
passthru.tests = { inherit (nixosTests.prometheus-exporters) node; };
|
||||||
|
|
||||||
meta = with stdenv.lib; {
|
meta = with stdenv.lib; {
|
||||||
description = "Prometheus exporter for machine metrics";
|
description = "Prometheus exporter for machine metrics";
|
||||||
homepage = "https://github.com/prometheus/node_exporter";
|
homepage = "https://github.com/prometheus/node_exporter";
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
{ stdenv, buildGoPackage, fetchFromGitHub, systemd, makeWrapper
|
{ stdenv, buildGoPackage, fetchFromGitHub, makeWrapper, nixosTests
|
||||||
, withSystemdSupport ? true }:
|
, systemd, withSystemdSupport ? true }:
|
||||||
|
|
||||||
with stdenv.lib;
|
with stdenv.lib;
|
||||||
|
|
||||||
@ -47,6 +47,8 @@ buildGoPackage rec {
|
|||||||
--prefix LD_LIBRARY_PATH : "${systemd.lib}/lib"
|
--prefix LD_LIBRARY_PATH : "${systemd.lib}/lib"
|
||||||
'';
|
'';
|
||||||
|
|
||||||
|
passthru.tests = { inherit (nixosTests.prometheus-exporters) postfix; };
|
||||||
|
|
||||||
meta = {
|
meta = {
|
||||||
inherit (src.meta) homepage;
|
inherit (src.meta) homepage;
|
||||||
description = "A Prometheus exporter for Postfix";
|
description = "A Prometheus exporter for Postfix";
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
{ lib, buildGoPackage, fetchFromGitHub }:
|
{ lib, buildGoPackage, fetchFromGitHub, nixosTests }:
|
||||||
|
|
||||||
buildGoPackage rec {
|
buildGoPackage rec {
|
||||||
pname = "postgres_exporter";
|
pname = "postgres_exporter";
|
||||||
@ -15,6 +15,8 @@ buildGoPackage rec {
|
|||||||
|
|
||||||
doCheck = true;
|
doCheck = true;
|
||||||
|
|
||||||
|
passthru.tests = { inherit (nixosTests.prometheus-exporters) postgres; };
|
||||||
|
|
||||||
meta = with lib; {
|
meta = with lib; {
|
||||||
inherit (src.meta) homepage;
|
inherit (src.meta) homepage;
|
||||||
description = "A Prometheus exporter for PostgreSQL";
|
description = "A Prometheus exporter for PostgreSQL";
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
{ stdenv, buildGoPackage, fetchFromGitHub }:
|
{ stdenv, buildGoPackage, fetchFromGitHub, nixosTests }:
|
||||||
|
|
||||||
buildGoPackage rec {
|
buildGoPackage rec {
|
||||||
pname = "redis_exporter";
|
pname = "redis_exporter";
|
||||||
@ -22,6 +22,8 @@ buildGoPackage rec {
|
|||||||
-X main.BuildDate=unknown
|
-X main.BuildDate=unknown
|
||||||
'';
|
'';
|
||||||
|
|
||||||
|
passthru.tests = { inherit (nixosTests.prometheus-exporters) redis; };
|
||||||
|
|
||||||
meta = with stdenv.lib; {
|
meta = with stdenv.lib; {
|
||||||
description = "Prometheus exporter for Redis metrics";
|
description = "Prometheus exporter for Redis metrics";
|
||||||
inherit (src.meta) homepage;
|
inherit (src.meta) homepage;
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
{ stdenv, buildGoPackage, fetchFromGitHub, net-snmp }:
|
{ stdenv, buildGoPackage, fetchFromGitHub, net-snmp, nixosTests }:
|
||||||
|
|
||||||
buildGoPackage rec {
|
buildGoPackage rec {
|
||||||
pname = "snmp_exporter";
|
pname = "snmp_exporter";
|
||||||
@ -17,6 +17,8 @@ buildGoPackage rec {
|
|||||||
|
|
||||||
doCheck = true;
|
doCheck = true;
|
||||||
|
|
||||||
|
passthru.tests = { inherit (nixosTests.prometheus-exporters) snmp; };
|
||||||
|
|
||||||
meta = with stdenv.lib; {
|
meta = with stdenv.lib; {
|
||||||
description = "SNMP Exporter for Prometheus";
|
description = "SNMP Exporter for Prometheus";
|
||||||
homepage = "https://github.com/prometheus/snmp_exporter";
|
homepage = "https://github.com/prometheus/snmp_exporter";
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
{ stdenv, buildGoPackage, fetchFromGitHub }:
|
{ stdenv, buildGoPackage, fetchFromGitHub, nixosTests }:
|
||||||
|
|
||||||
buildGoPackage rec {
|
buildGoPackage rec {
|
||||||
pname = "surfboard_exporter";
|
pname = "surfboard_exporter";
|
||||||
@ -13,6 +13,8 @@ buildGoPackage rec {
|
|||||||
sha256 = "11qms26648nwlwslnaflinxcr5rnp55s908rm1qpnbz0jnxf5ipw";
|
sha256 = "11qms26648nwlwslnaflinxcr5rnp55s908rm1qpnbz0jnxf5ipw";
|
||||||
};
|
};
|
||||||
|
|
||||||
|
passthru.tests = { inherit (nixosTests.prometheus-exporters) surfboard; };
|
||||||
|
|
||||||
meta = with stdenv.lib; {
|
meta = with stdenv.lib; {
|
||||||
description = "Arris Surfboard signal metrics exporter";
|
description = "Arris Surfboard signal metrics exporter";
|
||||||
homepage = "https://github.com/ipstatic/surfboard_exporter";
|
homepage = "https://github.com/ipstatic/surfboard_exporter";
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
{ lib, fetchFromGitHub, python3Packages }:
|
{ lib, fetchFromGitHub, python3Packages, nixosTests }:
|
||||||
|
|
||||||
python3Packages.buildPythonApplication rec {
|
python3Packages.buildPythonApplication rec {
|
||||||
name = "tor-exporter-${version}";
|
name = "tor-exporter-${version}";
|
||||||
@ -27,6 +27,8 @@ python3Packages.buildPythonApplication rec {
|
|||||||
--add-flags "$out/share/prometheus-tor-exporter.py"
|
--add-flags "$out/share/prometheus-tor-exporter.py"
|
||||||
'';
|
'';
|
||||||
|
|
||||||
|
passthru.tests = { inherit (nixosTests.prometheus-exporters) tor; };
|
||||||
|
|
||||||
meta = with lib; {
|
meta = with lib; {
|
||||||
description = "Prometheus exporter that exposes metrics from a Tor daemon";
|
description = "Prometheus exporter that exposes metrics from a Tor daemon";
|
||||||
homepage = "https://github.com/atx/prometheus-tor_exporter";
|
homepage = "https://github.com/atx/prometheus-tor_exporter";
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
{ lib, buildGoModule, fetchFromGitHub, makeWrapper, varnish }:
|
{ lib, buildGoModule, fetchFromGitHub, makeWrapper, varnish, nixosTests }:
|
||||||
|
|
||||||
buildGoModule rec {
|
buildGoModule rec {
|
||||||
pname = "prometheus_varnish_exporter";
|
pname = "prometheus_varnish_exporter";
|
||||||
@ -22,10 +22,12 @@ buildGoModule rec {
|
|||||||
|
|
||||||
doCheck = true;
|
doCheck = true;
|
||||||
|
|
||||||
|
passthru.tests = { inherit (nixosTests.prometheus-exporters) varnish; };
|
||||||
|
|
||||||
meta = {
|
meta = {
|
||||||
homepage = "https://github.com/jonnenauha/prometheus_varnish_exporter";
|
homepage = "https://github.com/jonnenauha/prometheus_varnish_exporter";
|
||||||
description = "Varnish exporter for Prometheus";
|
description = "Varnish exporter for Prometheus";
|
||||||
license = lib.licenses.mit;
|
license = lib.licenses.mit;
|
||||||
maintainers = with lib.maintainers; [ MostAwesomeDude willibutz ];
|
maintainers = with lib.maintainers; [ MostAwesomeDude willibutz ];
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
{ stdenv, rustPlatform, fetchFromGitHub, lib, Security }:
|
{ stdenv, rustPlatform, fetchFromGitHub, lib, Security, nixosTests }:
|
||||||
|
|
||||||
rustPlatform.buildRustPackage rec {
|
rustPlatform.buildRustPackage rec {
|
||||||
pname = "wireguard-exporter";
|
pname = "wireguard-exporter";
|
||||||
@ -15,6 +15,8 @@ rustPlatform.buildRustPackage rec {
|
|||||||
|
|
||||||
buildInputs = lib.optional stdenv.isDarwin Security;
|
buildInputs = lib.optional stdenv.isDarwin Security;
|
||||||
|
|
||||||
|
passthru.tests = { inherit (nixosTests.prometheus-exporters) wireguard; };
|
||||||
|
|
||||||
meta = with lib; {
|
meta = with lib; {
|
||||||
description = "A Prometheus exporter for WireGuard, written in Rust.";
|
description = "A Prometheus exporter for WireGuard, written in Rust.";
|
||||||
homepage = "https://github.com/MindFlavor/prometheus_wireguard_exporter";
|
homepage = "https://github.com/MindFlavor/prometheus_wireguard_exporter";
|
||||||
|
Loading…
Reference in New Issue
Block a user