summaryrefslogtreecommitdiffstats
path: root/docker-compose/config/prometheus.yml
diff options
context:
space:
mode:
authorhalil.cakal <halil.cakal@est.tech>2024-10-07 16:48:05 +0100
committerhalil.cakal <halil.cakal@est.tech>2024-10-09 09:43:26 +0100
commit69bd654946ab5512aa282bc8b74b654d80bf5245 (patch)
tree3fda10fa3f2609e9160fcc605741522cb6be95c0 /docker-compose/config/prometheus.yml
parente2517a8b993ed884edb251b91ce600d0a1a9fefe (diff)
Autodiscover cps-and-ncmp containers when load balancing
- remove hard-coded container names from load balancer(nginx) and prometheus Issue-ID: CPS-2437 Change-Id: Ia64b949c2eb3e4d67e123b046e66d5bfdda2c801 Signed-off-by: halil.cakal <halil.cakal@est.tech>
Diffstat (limited to 'docker-compose/config/prometheus.yml')
-rw-r--r--docker-compose/config/prometheus.yml16
1 files changed, 9 insertions, 7 deletions
diff --git a/docker-compose/config/prometheus.yml b/docker-compose/config/prometheus.yml
index 89af4a6800..e1aa4763d9 100644
--- a/docker-compose/config/prometheus.yml
+++ b/docker-compose/config/prometheus.yml
@@ -3,10 +3,12 @@ global:
evaluation_interval: 5s
scrape_configs:
- - job_name: 'cps-and-ncmp'
- metrics_path: '/actuator/prometheus'
- scrape_interval: 5s
- static_configs:
- - targets:
- - 'docker-compose-cps-and-ncmp-1:8080'
- - 'docker-compose-cps-and-ncmp-2:8080'
+- job_name: 'cps-and-ncmp'
+ metrics_path: '/actuator/prometheus'
+ scrape_interval: 5s
+ static_configs:
+ # If you want to inject Prometheus into particular containers, the targets should be provided similar to the following examples:
+ # - 'docker-compose-cps-and-ncmp-1:8080'
+ # - 'docker-compose-cps-and-ncmp-2:8080'
+ - targets:
+ - 'cps-and-ncmp:8080' \ No newline at end of file