Merge pull request #113370 from chkno/prometheus-systemd-exporter-no-flags

prometheus-systemd-exporter: Init at 0.4.0
This commit is contained in:
WilliButz
2021-03-11 19:18:29 +01:00
committed by GitHub
5 changed files with 61 additions and 0 deletions
+16
View File
@@ -835,6 +835,22 @@ let
'';
};
systemd = {
exporterConfig = {
enable = true;
};
metricProvider = { };
exporterTest = ''
wait_for_unit("prometheus-systemd-exporter.service")
wait_for_open_port(9558)
succeed(
"curl -sSf localhost:9558/metrics | grep -q '{}'".format(
'systemd_unit_state{name="basic.target",state="active",type="target"} 1'
)
)
'';
};
tor = {
exporterConfig = {
enable = true;