New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[prometheus-blackbox-exporter] define metricRelabelings in selfservicemonitor.yaml to handle additionalMetricsRelabels #4303
base: main
Are you sure you want to change the base?
Conversation
Signed-off-by: Sheikh-Abubaker <sheikhabubaker761@gmail.com>
Signed-off-by: Sheikh-Abubaker <sheikhabubaker761@gmail.com>
…helm-charts into additionalMetricsRelabels-pr
…helm-charts into additionalMetricsRelabels-pr
…helm-charts into additionalMetricsRelabels-pr
@@ -271,7 +271,7 @@ serviceMonitor: | |||
## | |||
selfMonitor: | |||
enabled: false | |||
additionalMetricsRelabels: {} | |||
additionalMetricsRelabels: [] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this will break:
helm-charts/charts/prometheus-blackbox-exporter/templates/selfpodmonitoring.yaml
Lines 21 to 28 in e8b1efd
{{- if .Values.podMonitoring.selfMonitor.additionalMetricsRelabels }} | |
metricRelabeling: | |
{{- range $targetLabel, $replacement := .Values.podMonitoring.selfMonitor.additionalMetricsRelabels | default $.Values.podMonitoring.defaults.additionalMetricsRelabels }} | |
- action: replace | |
targetLabel: {{ $targetLabel | quote }} | |
replacement: {{ $replacement | quote }} | |
{{- end }} | |
{{- end }} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@monotek can you please elaborate?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
you switch from list to map but map is used elsewhere.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
you switch from list to map
*from map to list right ?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
you switch from list to map but map is used elsewhere.
what do you suggest should I revert it to map again ?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
please checkout the latest commit I've reverted additionalMetricsRelabels
to map.
Signed-off-by: Sheikh-Abubaker <sheikhabubaker761@gmail.com>
…helm-charts into additionalMetricsRelabels-pr
…ikh-Abubaker/prometheus-helm-charts into additionalMetricsRelabels-pr
…helm-charts into additionalMetricsRelabels-pr
Signed-off-by: Sheikh-Abubaker <sheikhabubaker761@gmail.com>
Signed-off-by: Sheikh-Abubaker <sheikhabubaker761@gmail.com>
Signed-off-by: Sheikh-Abubaker <sheikhabubaker761@gmail.com>
What this PR does / why we need it
Which issue this PR fixes
(optional, in
fixes #<issue number>(, fixes #<issue_number>, ...)
format, will close that issue when PR gets merged)Special notes for your reviewer
Generated ServiceMonitor resource after defining metricRelabelings in selfservicemonitor.yaml, and when additionalMetricsRelabels set to an empty list.
additionalMetricsRelabels changed to empty list due to this warning
Checklist
[prometheus-couchdb-exporter]
)