Merge pull request #111364 from lbpdt/feature/prometheus-artifactory-exporter

nixos/prometheus-exporters/artifactory: init at 1.9.0
This commit is contained in:
WilliButz
2021-03-11 18:44:03 +01:00
committed by GitHub
5 changed files with 112 additions and 0 deletions
+15
View File
@@ -75,6 +75,21 @@ let
'';
};
artifactory = {
exporterConfig = {
enable = true;
artiUsername = "artifactory-username";
artiPassword = "artifactory-password";
};
exporterTest = ''
wait_for_unit("prometheus-artifactory-exporter.service")
wait_for_open_port(9531)
succeed(
"curl -sSf http://localhost:9531/metrics | grep -q 'artifactory_up'"
)
'';
};
bind = {
exporterConfig = {
enable = true;