Update docker_rules.yml (#877)

This commit is contained in:
Geoffrey Gilmore authored and GitHub committed 2022-11-09 09:43:13 -08:00
1 parent 03fc66c088
commit c1ffb7f93e
1 file changed
+35
+35
View File
@@ -0,0 +1,35 @@
# Prometheus global config
global:
scrape_interval: 30s
evaluation_interval: 30s
# scrape_timeout is set to the global default (10s).
# Alertmanager configuration
alerting:
alertmanagers:
# bundled alertmanager, started by prom-wrapper
- static_configs:
- targets: ['127.0.0.1:9093']
path_prefix: /alertmanager
# add more alertmanagers here
# Load rules once and periodically evaluate them according to the global 'evaluation_interval'.
rule_files:
- '*_rules.yml'
- '/sg_prometheus_add_ons/*_rules.yml'
# Configure targets to scrape
scrape_configs:
# Scrape prometheus itself for metrics.
- job_name: 'builtin-prometheus'
static_configs:
- targets: ['127.0.0.1:9092']
- job_name: 'builtin-alertmanager'
metrics_path: /alertmanager/metrics
static_configs:
- targets: ['127.0.0.1:9093']
- job_name: 'sg'
file_sd_configs:
- files:
- '/sg_prometheus_add_ons/*_targets.yml'