adding prometheus stuff
This commit is contained in:
16
prometheus/compose.yaml
Normal file
16
prometheus/compose.yaml
Normal 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
13
prometheus/prometheus.yml
Normal 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']
|
||||
|
||||
|
||||
Reference in New Issue
Block a user