File tree 3 files changed +37
-0
lines changed
3 files changed +37
-0
lines changed Original file line number Diff line number Diff line change @@ -84,6 +84,10 @@ Parameter | Description | Default
84
84
` slack.channel ` | Slack channel | None
85
85
` slack.user ` | Slack username | ` flagger `
86
86
` msteams.url ` | Microsoft Teams incoming webhook | None
87
+ ` podMonitor.enabled ` | if ` true ` , create a PodMonitor for [ monitoring the metrics] ( https://docs.flagger.app/usage/monitoring#metrics ) | ` false `
88
+ ` podMonitor.namespace ` | the namespace where the PodMonitor is created | the same namespace
89
+ ` podMonitor.interval ` | interval at which metrics should be scraped | ` 15s `
90
+ ` podMonitor.podMonitor ` | additional labels to add to the PodMonitor | ` {} `
87
91
` leaderElection.enabled ` | leader election must be enabled when running more than one replica | ` false `
88
92
` leaderElection.replicaCount ` | number of replicas | ` 1 `
89
93
` ingressAnnotationsPrefix ` | annotations prefix for ingresses | ` custom.ingress.kubernetes.io `
Original file line number Diff line number Diff line change
1
+ {{- if .Values.podMonitor.enabled }}
2
+ apiVersion : monitoring.coreos.com/v1
3
+ kind : PodMonitor
4
+ metadata :
5
+ labels :
6
+ helm.sh/chart : {{ template "flagger.chart" . }}
7
+ app.kubernetes.io/name : {{ template "flagger.name" . }}
8
+ app.kubernetes.io/managed-by : {{ .Release.Service }}
9
+ app.kubernetes.io/instance : {{ .Release.Name }}
10
+ {{- range $k, $v := .Values.podMonitor.additionalLabels }}
11
+ {{ $k }}: {{ $v | quote }}
12
+ {{- end }}
13
+ name : {{ include "flagger.fullname" . }}
14
+ namespace : {{ .Values.podMonitor.namespace | default .Release.Namespace }}
15
+ spec :
16
+ podMetricsEndpoints :
17
+ - interval : {{ .Values.podMonitor.interval }}
18
+ path : /metrics
19
+ port : http
20
+ namespaceSelector :
21
+ matchNames :
22
+ - {{ .Release.Namespace }}
23
+ selector :
24
+ matchLabels :
25
+ app.kubernetes.io/name : {{ template "flagger.name" . }}
26
+ app.kubernetes.io/instance : {{ .Release.Name }}
27
+ {{- end }}
Original file line number Diff line number Diff line change @@ -33,6 +33,12 @@ msteams:
33
33
# MS Teams incoming webhook URL
34
34
url :
35
35
36
+ podMonitor :
37
+ enabled : false
38
+ namespace :
39
+ interval : 15s
40
+ additionalLabels : {}
41
+
36
42
# env:
37
43
# - name: SLACK_URL
38
44
# valueFrom:
You can’t perform that action at this time.
0 commit comments