summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBartek Grzybowski <b.grzybowski@partner.samsung.com>2022-02-04 13:00:01 +0100
committerBartek Grzybowski <b.grzybowski@partner.samsung.com>2022-02-09 11:28:53 +0000
commit310164350fdfbc768e20635eb48a2fc4e6c22cc7 (patch)
tree421f4317ad91a47a9f2281471a9d8ee54e020d6f
parentf19eb37d62f0866481c99c861e378c0e519c941f (diff)
[ANSIBLE] Setup Prometheus to select all ServiceMonitors
By default Prometheus selects only ServiceMonitors with a "release" label set to "kube-prometheus-stack" which prevents correct discovery of Onap monitoring targets. With these settings any ServiceMonitor with any arbitrary label will be selected. Change-Id: Icbb099a86779bc4df6333e71258504e18f3d1d09 Issue-ID: OOM-2924 Signed-off-by: Bartek Grzybowski <b.grzybowski@partner.samsung.com>
-rw-r--r--ansible/roles/kube-prometheus-stack/defaults/main.yml3
1 files changed, 3 insertions, 0 deletions
diff --git a/ansible/roles/kube-prometheus-stack/defaults/main.yml b/ansible/roles/kube-prometheus-stack/defaults/main.yml
index 8803b802..681f5c0e 100644
--- a/ansible/roles/kube-prometheus-stack/defaults/main.yml
+++ b/ansible/roles/kube-prometheus-stack/defaults/main.yml
@@ -43,6 +43,9 @@ kube_prometheus_stack:
prometheus:
prometheusSpec:
scrapeInterval: 60s
+ serviceMonitorNamespaceSelector: {}
+ serviceMonitorSelector: {}
+ serviceMonitorSelectorNilUsesHelmValues: false
storageSpec:
disableMountSubPath: true
volumeClaimTemplate: