From 0e87f09c4e1107c7134e41891ddb6fa9982759b6 Mon Sep 17 00:00:00 2001 From: Kiran Kamineni Date: Mon, 17 Sep 2018 15:17:18 -0700 Subject: Add prometheus chart for multicloud Adding prometheus server chart under multicloud. P4: Add Alertmanager subchart under prometheus P6: Add Grafana subchart under prometheus P9: Add resourcelimits P10: Use version 3.0.0 for all the charts Issue-ID: MULTICLOUD-317 Change-Id: I7ba764d020921729225cf6f65154d00ad4e40dae Signed-off-by: Kiran Kamineni --- .../resources/config/prometheus.yml | 37 ++++++++++++++++++++++ 1 file changed, 37 insertions(+) create mode 100644 kubernetes/multicloud/charts/multicloud-prometheus/resources/config/prometheus.yml (limited to 'kubernetes/multicloud/charts/multicloud-prometheus/resources') 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 -}} -- cgit 1.2.3-korg