22 lines
509 B
YAML
22 lines
509 B
YAML
# docker run -p 9090:9090 -v /path/to/prometheus.yml:/etc/prometheus/prometheus.yml prom/prometheus
|
|
global:
|
|
scrape_interval: 15s
|
|
evaluation_interval: 15s
|
|
alerting:
|
|
alertmanagers:
|
|
- static_configs:
|
|
- targets:
|
|
|
|
rule_files:
|
|
|
|
scrape_configs:
|
|
- job_name: 'prometheus'
|
|
static_configs:
|
|
- targets: ['host.docker.internal:9090']
|
|
|
|
- job_name: 'actuator'
|
|
metrics_path: '/actuator/prometheus'
|
|
scrape_interval: 1s
|
|
static_configs:
|
|
- targets: ['host.docker.internal:8080']
|