mirror of
https://github.com/RustyRaptor/deploy-sourcegraph-docker.git
synced 2026-12-03 15:55:17 -07:00
Update docker_rules.yml (#877)
This commit is contained in:
1 parent
03fc66c088
commit
c1ffb7f93e
1 file changed
+35
@@ -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'
|
||||
Reference in new issue
Block a user