From b22694d3c232feb8cfde0454ab4c8aaf39bfc6e4 Mon Sep 17 00:00:00 2001 From: Waleed Malik Date: Tue, 1 Dec 2020 16:38:55 +0500 Subject: [PATCH] Add servicemonitor in values template --- .../kubernetes/templates/chart/values.yaml.tmpl | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/deployments/kubernetes/templates/chart/values.yaml.tmpl b/deployments/kubernetes/templates/chart/values.yaml.tmpl index e7624f4..bada980 100644 --- a/deployments/kubernetes/templates/chart/values.yaml.tmpl +++ b/deployments/kubernetes/templates/chart/values.yaml.tmpl @@ -104,3 +104,15 @@ reloader: # configmap: "my.company.com/configmap" # secret: "my.company.com/secret" custom_annotations: {} + serviceMonitor: + # enabling this requires service to be enabled as well, or no endpoints will be found + enabled: false + # Set the namespace the ServiceMonitor should be deployed + # namespace: monitoring + # Set how frequently Prometheus should scrape + # interval: 30s + # Set labels for the ServiceMonitor, use this to define your scrape label for Prometheus Operator + # labels: + # Set timeout for scrape + # timeout: 10s +