blob: 0355b48ab5dcba4a6227126823e6c09dd472f960 [file] [log] [blame]
Kiran Kamineni0e87f092018-09-17 15:17:18 -07001global:
2 scrape_interval: 1m
3 scrape_timeout: 10s
4 evaluation_interval: 1m
5
6rule_files:
7 - /etc/config/rules
8 - /etc/config/alerts
9
10scrape_configs:
11 - job_name: prometheus
12 static_configs:
13 - targets:
14 - localhost:9090
15 {{/*
16 #Add more jobs after this indent if needed
17 */}}
18
19{{- if .Values.global.alertmanager.enabled }}
20alerting:
21 alertmanagers:
22 - kubernetes_sd_configs:
23 - role: pod
24 relabel_configs:
25 - source_labels: [__meta_kubernetes_namespace]
26 regex: {{ include "common.namespace" . }}
27 action: keep
28 - source_labels: [__meta_kubernetes_pod_label_app]
29 regex: prometheus
30 action: keep
31 - source_labels: [__meta_kubernetes_pod_label_component]
32 regex: alertmanager
33 action: keep
34 - source_labels: [__meta_kubernetes_pod_container_port_number]
35 regex:
36 action: drop
37{{- end -}}