@@ -2,19 +2,16 @@ global: # Prometheus global config
22 # scrape_timeout is set to the global default (10s)
33 scrape_interval : 30s # How frequently to scrape targets by default
44 evaluation_interval : 30s # How frequently to evaluate rules
5-
65alerting : # Alertmanager configuration
76 alertmanagers :
87 # bundled alertmanager, started by prom-wrapper
98 - static_configs :
109 - targets : ["127.0.0.1:9093"]
1110 path_prefix : /alertmanager
12- # add more alertmanagers here
13-
11+ # add more alertmanagers here
1412rule_files : # Load rules once and periodically evaluate them according to the global 'evaluation_interval'.
1513 - " /sg_config_prometheus/*_rules.yml"
1614 - " /sg_prometheus_add_ons/*_rules.yml"
17-
1815scrape_configs : # Configure targets to scrape
1916 # Scrape prometheus itself for metrics.
2017 - job_name : " builtin-prometheus"
@@ -25,7 +22,6 @@ scrape_configs: # Configure targets to scrape
2522 metrics_path : /alertmanager/metrics
2623 static_configs :
2724 - targets : ["127.0.0.1:9093"]
28-
2925 # ------------------------------------------------------------------------------
3026 # cAdvisor
3127 # ------------------------------------------------------------------------------
@@ -47,16 +43,11 @@ scrape_configs: # Configure targets to scrape
4743 - source_labels : [container_label_io_kubernetes_pod_namespace]
4844 regex : kube-system
4945 action : drop
50- - source_labels :
51- [
52- container_label_io_kubernetes_container_name,
53- container_label_io_kubernetes_pod_name,
54- ]
46+ - source_labels : [container_label_io_kubernetes_container_name, container_label_io_kubernetes_pod_name]
5547 regex : (.+)
5648 action : replace
5749 target_label : name
5850 separator : " -"
59-
6051 # ------------------------------------------------------------------------------
6152 # Sourcegraph Service Discovery with DNS-SRV records
6253 # https://prometheus.io/docs/prometheus/latest/configuration/configuration/#dns_sd_config
@@ -126,7 +117,6 @@ scrape_configs: # Configure targets to scrape
126117 - source_labels : [container_label_io_kubernetes_pod_namespace]
127118 target_label : ns
128119 action : replace
129-
130120 # ------------------------------------------------------------------------------
131121 # Sourcegraph Service Discovery with statics targets
132122 # ------------------------------------------------------------------------------
0 commit comments