From e2f05f6e9cc84a34988132d56186259ee1ab7daa Mon Sep 17 00:00:00 2001 From: cjones Date: Mon, 16 Mar 2026 22:47:28 -0400 Subject: [PATCH] adding prometheus stuff --- prometheus/compose.yaml | 16 ++++++++++++++++ prometheus/prometheus.yml | 13 +++++++++++++ 2 files changed, 29 insertions(+) create mode 100644 prometheus/compose.yaml create mode 100644 prometheus/prometheus.yml diff --git a/prometheus/compose.yaml b/prometheus/compose.yaml new file mode 100644 index 0000000..38ef929 --- /dev/null +++ b/prometheus/compose.yaml @@ -0,0 +1,16 @@ +services: + prometheus: + image: prom/prometheus:v2.52.0 + container_name: prometheus + ports: + - "9098:9090" + volumes: + - ./prometheus.yml:/etc/prometheus/prometheus.yml + networks: + - monitoring + restart: unless-stopped + +networks: + monitoring: + external: true + diff --git a/prometheus/prometheus.yml b/prometheus/prometheus.yml new file mode 100644 index 0000000..671ba8e --- /dev/null +++ b/prometheus/prometheus.yml @@ -0,0 +1,13 @@ +global: + scrape_interval: 15s + +scrape_configs: + - job_name: 'prometheus' + static_configs: + - targets: ['localhost:9098'] + + - job_name: 'docker' + static_configs: + - targets: ['172.17.0.1:9323'] + +