26 lines
812 B
YAML
26 lines
812 B
YAML
networks:
|
|
default:
|
|
name: eigen-monitoring
|
|
external: true
|
|
|
|
services:
|
|
prometheus:
|
|
image: prom/prometheus:latest
|
|
restart: unless-stopped
|
|
volumes:
|
|
- ./prometheus.yml:/etc/prometheus/prometheus.yml
|
|
- ./.data:/prometheus
|
|
command:
|
|
- '--config.file=/etc/prometheus/prometheus.yml'
|
|
- '--storage.tsdb.retention.time=60d'
|
|
- '--storage.tsdb.min-block-duration=2h'
|
|
- '--storage.tsdb.max-block-duration=2h'
|
|
- '--storage.tsdb.path=/prometheus'
|
|
- '--web.console.libraries=/etc/prometheus/console_libraries'
|
|
- '--web.console.templates=/etc/prometheus/consoles'
|
|
- '--web.enable-lifecycle'
|
|
- '--web.enable-admin-api'
|
|
- '--web.enable-remote-write-receiver'
|
|
- '--enable-feature=native-histograms'
|
|
ports:
|
|
- "9090:9090" |