Skip to content
Snippets Groups Projects
Commit 40092e62 authored by Benedikt Wetzel's avatar Benedikt Wetzel
Browse files

Let Helm deploy service monitor for Kafka Lag Exporter based on Helm template

parent 6e9e9e22
No related branches found
No related tags found
No related merge requests found
File mode changed from 100644 to 100755
apiVersion: monitoring.coreos.com/v1
kind: ServiceMonitor
metadata:
labels:
app: kafka-lag-exporter
appScope: titan-ccp
name: kafka-lag-exporter
spec:
selector:
matchLabels:
#app: cp-kafka
jobLabel: kafka-lag-exporter
endpoints:
- port: http
interval: 5s
\ No newline at end of file
...@@ -7,8 +7,10 @@ pollIntervalSeconds: 15 ...@@ -7,8 +7,10 @@ pollIntervalSeconds: 15
prometheus: prometheus:
serviceMonitor: serviceMonitor:
enabled: false enabled: true
interval: "30s" interval: "30s"
additionalLabels:
appScope: titan-ccp
# service monitor label selectors: https://github.com/helm/charts/blob/f5a751f174263971fafd21eee4e35416d6612a3d/stable/prometheus-operator/templates/prometheus/prometheus.yaml#L74 # service monitor label selectors: https://github.com/helm/charts/blob/f5a751f174263971fafd21eee4e35416d6612a3d/stable/prometheus-operator/templates/prometheus/prometheus.yaml#L74
# additionalLabels: # additionalLabels:
# prometheus: k8s # prometheus: k8s
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment