From 2463703b6c8f4a647ecdbb95413e42de3e5d4a75 Mon Sep 17 00:00:00 2001 From: Luca Bello Date: Tue, 10 Sep 2024 16:32:35 +0200 Subject: [PATCH] fix: use the correct port for the nginx exporter --- src/cosl/coordinated_workers/coordinator.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/cosl/coordinated_workers/coordinator.py b/src/cosl/coordinated_workers/coordinator.py index 1396cea..f38da96 100644 --- a/src/cosl/coordinated_workers/coordinator.py +++ b/src/cosl/coordinated_workers/coordinator.py @@ -535,7 +535,7 @@ def _nginx_scrape_jobs(self) -> List[Dict[str, Any]]: """The Prometheus scrape job for Nginx.""" job: Dict[str, Any] = { "static_configs": [ - {"targets": [f"{self.hostname}:{self.nginx.options['nginx_port']}"]} + {"targets": [f"{self.hostname}:{self.nginx.options['nginx_exporter_port']}"]} ] } return [job]