summaryrefslogtreecommitdiffstats
path: root/kubernetes/multicloud/charts/multicloud-prometheus/resources/config/prometheus.yml
diff options
context:
space:
mode:
authorAlexis de Talhouƫt <alexis.de_talhouet@bell.ca>2018-12-07 18:13:27 +0000
committerGerrit Code Review <gerrit@onap.org>2018-12-07 18:13:27 +0000
commit89cf818942a998ff5a43d7d3dd1d0f7fb3b240f1 (patch)
tree4d5371d28b8023a2a043211d25d059939735e945 /kubernetes/multicloud/charts/multicloud-prometheus/resources/config/prometheus.yml
parentce182d7d9d71696a3b062643492d4b0be5f98f69 (diff)
parent0e87f09c4e1107c7134e41891ddb6fa9982759b6 (diff)
Merge "Add prometheus chart for multicloud"
Diffstat (limited to 'kubernetes/multicloud/charts/multicloud-prometheus/resources/config/prometheus.yml')
-rw-r--r--kubernetes/multicloud/charts/multicloud-prometheus/resources/config/prometheus.yml37
1 files changed, 37 insertions, 0 deletions
diff --git a/kubernetes/multicloud/charts/multicloud-prometheus/resources/config/prometheus.yml b/kubernetes/multicloud/charts/multicloud-prometheus/resources/config/prometheus.yml
new file mode 100644
index 0000000000..0355b48ab5
--- /dev/null
+++ b/kubernetes/multicloud/charts/multicloud-prometheus/resources/config/prometheus.yml
@@ -0,0 +1,37 @@
+global:
+ scrape_interval: 1m
+ scrape_timeout: 10s
+ evaluation_interval: 1m
+
+rule_files:
+ - /etc/config/rules
+ - /etc/config/alerts
+
+scrape_configs:
+ - job_name: prometheus
+ static_configs:
+ - targets:
+ - localhost:9090
+ {{/*
+ #Add more jobs after this indent if needed
+ */}}
+
+{{- if .Values.global.alertmanager.enabled }}
+alerting:
+ alertmanagers:
+ - kubernetes_sd_configs:
+ - role: pod
+ relabel_configs:
+ - source_labels: [__meta_kubernetes_namespace]
+ regex: {{ include "common.namespace" . }}
+ action: keep
+ - source_labels: [__meta_kubernetes_pod_label_app]
+ regex: prometheus
+ action: keep
+ - source_labels: [__meta_kubernetes_pod_label_component]
+ regex: alertmanager
+ action: keep
+ - source_labels: [__meta_kubernetes_pod_container_port_number]
+ regex:
+ action: drop
+{{- end -}}