Browse Source

feat(prometheus): Prometheus container and basic scraping configuration (#1838)

24kushang 10 months ago
parent
commit
0f7be5444b
2 changed files with 18 additions and 0 deletions
  1. 13 0
      prometheus.yml
  2. 5 0
      prometheus/prometheus.yml

+ 13 - 0
prometheus.yml

@@ -0,0 +1,13 @@
+services:
+  prometheus:
+    image: prom/prometheus
+    container_name: prometheus
+    command:
+      - "--config.file=/etc/prometheus/prometheus.yml"
+    ports:
+      - 9090:9090
+    restart: ${RESTART_POLICY:-unless-stopped}
+    volumes:
+      - ./prometheus:/etc/prometheus
+    networks:
+      meet.jitsi:

+ 5 - 0
prometheus/prometheus.yml

@@ -0,0 +1,5 @@
+scrape_configs:
+  - job_name: "prometheus"
+    scrape_interval: 5s
+    static_configs:
+      - targets: ["prosody:5280","jvb:8080","jicofo:8888"]