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'] + +