Skip to content

Commit ec9888c

Browse files
authored
feat(erpc): add metricRelabelings support to ServiceMonitor (#274)
Enable post-scrape metric filtering via ServiceMonitor metricRelabelings. This allows consumers to drop or relabel metrics before they are committed to the WAL and remote-written to the metrics backend.
1 parent d23521e commit ec9888c

File tree

3 files changed

+7
-1
lines changed

3 files changed

+7
-1
lines changed

charts/erpc/Chart.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ type: application
2121
# This is the chart version. This version number should be incremented each time you make changes
2222
# to the chart and its templates, including the app version.
2323
# Versions are expected to follow Semantic Versioning (https://semver.org/)
24-
version: 0.6.1
24+
version: 0.6.2
2525

2626
# This is the version number of the application being deployed. This version number should be
2727
# incremented each time you make changes to the application. Versions are not expected to

charts/erpc/templates/servicemonitor.yaml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,10 @@ spec:
3333
relabelings:
3434
{{- toYaml .Values.serviceMonitor.relabelings | nindent 4 }}
3535
{{- end }}
36+
{{- if .Values.serviceMonitor.metricRelabelings }}
37+
metricRelabelings:
38+
{{- toYaml .Values.serviceMonitor.metricRelabelings | nindent 4 }}
39+
{{- end }}
3640
jobLabel: "{{ .Release.Name }}"
3741
selector:
3842
matchLabels:

charts/erpc/values.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -381,5 +381,7 @@ serviceMonitor:
381381
scrapeTimeout: 30s
382382
# -- ServiceMonitor relabelings
383383
relabelings: []
384+
# -- ServiceMonitor metricRelabelings
385+
metricRelabelings: []
384386

385387
extraObjects: []

0 commit comments

Comments
 (0)