adding prometheus stuff

This commit is contained in:
2026-03-16 22:47:28 -04:00
parent 4bf457c84a
commit e2f05f6e9c
2 changed files with 29 additions and 0 deletions

16
prometheus/compose.yaml Normal file
View File

@@ -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

13
prometheus/prometheus.yml Normal file
View File

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