Skip to content

Commit dd7f5b4

Browse files
authored
Merge pull request #195 from andi4000/feat/honor-labels-servicemonitor
feat: expose honorLabels key in ServiceMonitor
2 parents 5d27334 + 6532e4d commit dd7f5b4

File tree

3 files changed

+5
-1
lines changed

3 files changed

+5
-1
lines changed

charts/flipt/Chart.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ name: flipt
33
home: https://flipt.io
44
description: Flipt is an open-source, self-hosted feature flag solution.
55
type: application
6-
version: 0.76.1
6+
version: 0.77.0
77
appVersion: v1.53.1
88
maintainers:
99
- name: Flipt

charts/flipt/templates/servicemonitor.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ spec:
1818
interval: {{ . }}
1919
{{- end }}
2020
path: /metrics
21+
honorLabels: {{ .Values.metrics.serviceMonitor.honorLabels }}
2122
{{- with .Values.metrics.serviceMonitor.relabelings }}
2223
relabelings:
2324
{{- toYaml . | nindent 8 }}

charts/flipt/values.yaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -207,6 +207,9 @@ metrics:
207207
# -- ServiceMonitor relabel configs to apply to samples before scraping
208208
# https://github.com/prometheus-operator/prometheus-operator/blob/master/Documentation/api.md#relabelconfig
209209
relabelings: []
210+
# -- What to do when flipt metrics labels are conflicting with Prometheus server-side labels.
211+
# true means keep label values from flipt.
212+
honorLabels: false
210213
# -- ServiceMonitor will use http by default, but you can pick https as well
211214
scheme: http
212215
# -- ServiceMonitor will use these tlsConfig settings to make the health check requests

0 commit comments

Comments
 (0)