Skip to content

Commit c1ffb7f

Browse files
authored
Update docker_rules.yml (#877)
1 parent 03fc66c commit c1ffb7f

File tree

1 file changed

+35
-0
lines changed

1 file changed

+35
-0
lines changed

prometheus/prometheus.yml

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
# Prometheus global config
2+
global:
3+
scrape_interval: 30s
4+
evaluation_interval: 30s
5+
# scrape_timeout is set to the global default (10s).
6+
7+
# Alertmanager configuration
8+
alerting:
9+
alertmanagers:
10+
# bundled alertmanager, started by prom-wrapper
11+
- static_configs:
12+
- targets: ['127.0.0.1:9093']
13+
path_prefix: /alertmanager
14+
# add more alertmanagers here
15+
16+
# Load rules once and periodically evaluate them according to the global 'evaluation_interval'.
17+
rule_files:
18+
- '*_rules.yml'
19+
- '/sg_prometheus_add_ons/*_rules.yml'
20+
21+
# Configure targets to scrape
22+
scrape_configs:
23+
# Scrape prometheus itself for metrics.
24+
- job_name: 'builtin-prometheus'
25+
static_configs:
26+
- targets: ['127.0.0.1:9092']
27+
- job_name: 'builtin-alertmanager'
28+
metrics_path: /alertmanager/metrics
29+
static_configs:
30+
- targets: ['127.0.0.1:9093']
31+
32+
- job_name: 'sg'
33+
file_sd_configs:
34+
- files:
35+
- '/sg_prometheus_add_ons/*_targets.yml'

0 commit comments

Comments
 (0)