mirror of
https://github.com/RustyRaptor/deploy-sourcegraph-docker.git
synced 2026-12-03 15:55:17 -07:00
36 lines
990 B
YAML
36 lines
990 B
YAML
# 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:
|
|
- '/sg_config_prometheus/*_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'
|