File tree Expand file tree Collapse file tree 2 files changed +29
-0
lines changed
charts/whatsapp-proxy-chart Expand file tree Collapse file tree 2 files changed +29
-0
lines changed Original file line number Diff line number Diff line change 1+ # Copyright (c) Meta Platforms, Inc. and affiliates.
2+ #
3+ # License found in the LICENSE file in the root directory
4+ # of this source tree.
5+ {{- if .Values.enableServiceMonitor }}
6+ apiVersion : monitoring.coreos.com/v1
7+ kind : ServiceMonitor
8+ metadata :
9+ name : {{ include "whatsapp-proxy-chart.fullname" . }}-servicemonitor
10+ namespace : default
11+ labels :
12+ release : {{ .Values.prometheus.release }}
13+ spec :
14+ endpoints :
15+ - interval : 30s
16+ path : /metrics
17+ port : stats
18+ namespaceSelector :
19+ matchNames :
20+ - default
21+ selector :
22+ matchLabels :
23+ {{- include "whatsapp-proxy-chart.selectorLabels" . | nindent 6 }}
24+ {{- end }}
Original file line number Diff line number Diff line change @@ -102,3 +102,8 @@ nodeSelector: {}
102102tolerations : []
103103
104104affinity : {}
105+
106+ # Enables service monitor for the prometheus operator.
107+ enableServiceMonitor : false
108+ prometheus :
109+ release : my-prometheus-release
You can’t perform that action at this time.
0 commit comments