Skip to content
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-snmp-exporter] Extend metric relabels #4490

Merged

Conversation

ngc4579
Copy link
Contributor

@ngc4579 ngc4579 commented Apr 26, 2024

  • In addition to fixed '$key: $value' metric relabelings, allow arbitrary relabel configs in order to support e.g. common label prefixes

@walker-tom @xiu @Miouge1

What this PR does / why we need it

Metric relabeling is currently limited to fixed label replacements .

In order to support arbitrary relabel configs, a new value serviceMonitor.additionalMetricsRelabelConfigs resp. serviceMonitor.params.additionalMetricsRelabelConfigs has been introduced.

Checklist

  • DCO signed
  • Chart Version bumped
  • Title of the PR starts with chart name (e.g. [prometheus-couchdb-exporter])

- In addition to fixed '$key: $value' metric relabelings, allow
  arbitrary relabel configs in order to support e.g. common
  label prefixes

Signed-off-by: ngc4579 <distant.calls@gmail.com>
Copy link
Contributor

@walker-tom walker-tom left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for the PR! Changes look good to me, just a quick couple of comments then I'll approve and merge.

charts/prometheus-snmp-exporter/values.yaml Show resolved Hide resolved
charts/prometheus-snmp-exporter/values.yaml Show resolved Hide resolved
ngc4579 and others added 2 commits April 27, 2024 20:42
Apply suggested changes

Co-authored-by: Tom Walker <walker.thomas.p@gmail.com>
Signed-off-by: ngc4579 <distant.calls@gmail.com>
Apply suggested changes

Co-authored-by: Tom Walker <walker.thomas.p@gmail.com>
Signed-off-by: ngc4579 <distant.calls@gmail.com>
@walker-tom walker-tom merged commit f93d563 into prometheus-community:main Apr 28, 2024
4 checks passed
wilfriedroset pushed a commit to wilfriedroset/helm-charts that referenced this pull request May 8, 2024
…ty#4490)

* [prometheus-snmp-exporter] Extend metric relabels

- In addition to fixed '$key: $value' metric relabelings, allow
  arbitrary relabel configs in order to support e.g. common
  label prefixes

Signed-off-by: ngc4579 <distant.calls@gmail.com>

* Update charts/prometheus-snmp-exporter/values.yaml

Apply suggested changes

Co-authored-by: Tom Walker <walker.thomas.p@gmail.com>
Signed-off-by: ngc4579 <distant.calls@gmail.com>

* Update charts/prometheus-snmp-exporter/values.yaml

Apply suggested changes

Co-authored-by: Tom Walker <walker.thomas.p@gmail.com>
Signed-off-by: ngc4579 <distant.calls@gmail.com>

---------

Signed-off-by: ngc4579 <distant.calls@gmail.com>
Co-authored-by: Tom Walker <walker.thomas.p@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants