From 0f7be5444b391d86d6d864da07c4347978c857d8 Mon Sep 17 00:00:00 2001 From: 24kushang <102860007+24kushang@users.noreply.github.com> Date: Wed, 3 Jul 2024 21:50:28 +0530 Subject: [PATCH] feat(prometheus): Prometheus container and basic scraping configuration (#1838) --- prometheus.yml | 13 +++++++++++++ prometheus/prometheus.yml | 5 +++++ 2 files changed, 18 insertions(+) create mode 100644 prometheus.yml create mode 100644 prometheus/prometheus.yml diff --git a/prometheus.yml b/prometheus.yml new file mode 100644 index 0000000..ffe0bda --- /dev/null +++ b/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: \ No newline at end of file diff --git a/prometheus/prometheus.yml b/prometheus/prometheus.yml new file mode 100644 index 0000000..b806f42 --- /dev/null +++ b/prometheus/prometheus.yml @@ -0,0 +1,5 @@ +scrape_configs: + - job_name: "prometheus" + scrape_interval: 5s + static_configs: + - targets: ["prosody:5280","jvb:8080","jicofo:8888"]