From 8e82edf6b81fd39b2141a9a1ec65f7952c8db7ba Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Jan=20Pokorn=C3=BD?= <xpokorn8@fi.muni.cz>
Date: Wed, 26 Apr 2023 15:25:21 +0200
Subject: [PATCH] fixing prometheus.yml for linux and macOS

---
 application/prometheus/prometheus.yml | 31 +++++++++++++++++++--------
 1 file changed, 22 insertions(+), 9 deletions(-)

diff --git a/application/prometheus/prometheus.yml b/application/prometheus/prometheus.yml
index 1fb0be13..1e27bf21 100644
--- a/application/prometheus/prometheus.yml
+++ b/application/prometheus/prometheus.yml
@@ -6,20 +6,33 @@ global:
 scrape_configs:
   - job_name: 'prometheus'
     static_configs:
-      - targets: ['localhost:9090']
+      - targets:
+        - 'localhost:9090'
   - job_name: 'module-certificate'
-    metrics_path: /actuator/prometheus
+    metrics_path: '/actuator/prometheus'
     static_configs:
-      - targets: ['host.docker.internal:5001']
+      - targets:
+          - 'host.docker.internal:5001'
+          - 'docker.for.mac.localhost:5001'
+          - 'certificate:5001'
   - job_name: 'module-exercise'
-    metrics_path: /actuator/prometheus
+    metrics_path: '/actuator/prometheus'
     static_configs:
-      - targets: ['host.docker.internal:5002']
+      - targets:
+          - 'host.docker.internal:5002'
+          - 'docker.for.mac.localhost:5002'
+          - 'exercise:5002'
   - job_name: 'module-language-school'
-    metrics_path: /actuator/prometheus
+    metrics_path: '/actuator/prometheus'
     static_configs:
-      - targets: ['host.docker.internal:5000']
+      - targets:
+          - 'host.docker.internal:5000'
+          - 'docker.for.mac.localhost:5000'
+          - 'language-school:5000'
   - job_name: 'module-mail'
-    metrics_path: /actuator/prometheus
+    metrics_path: '/actuator/prometheus'
     static_configs:
-      - targets: ['host.docker.internal:5003']
+      - targets:
+          - 'host.docker.internal:5003'
+          - 'docker.for.mac.localhost:5003'
+          - 'mail:5003'
-- 
GitLab