Kiran Kamineni | 0e87f09 | 2018-09-17 15:17:18 -0700 | [diff] [blame] | 1 | global: |
| 2 | scrape_interval: 1m |
| 3 | scrape_timeout: 10s |
| 4 | evaluation_interval: 1m |
| 5 | |
| 6 | rule_files: |
| 7 | - /etc/config/rules |
| 8 | - /etc/config/alerts |
| 9 | |
| 10 | scrape_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 }} |
| 20 | alerting: |
| 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 -}} |