Merge pull request #111364 from lbpdt/feature/prometheus-artifactory-exporter
nixos/prometheus-exporters/artifactory: init at 1.9.0
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user