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

Sanitize prometheus labels #2707

Merged
merged 1 commit into from
Mar 18, 2021
Merged

Conversation

seanhoughton
Copy link
Contributor

This fixes #2700

Description:

This fix allows the prometheus exporter to work with standard labels that follow the naming convention of using periods instead of underscores.

Link to tracking Issue:

#2700

Testing:

I will add tests in a second commit

Documentation:

No additional documentation added, is it worth mentioning?

@codecov
Copy link

codecov bot commented Mar 16, 2021

Codecov Report

Merging #2707 (d0fd1b0) into main (cadd84d) will not change coverage.
The diff coverage is 100.00%.

Impacted file tree graph

@@           Coverage Diff           @@
##             main    #2707   +/-   ##
=======================================
  Coverage   91.81%   91.81%           
=======================================
  Files         290      290           
  Lines       15559    15559           
=======================================
  Hits        14285    14285           
  Misses        876      876           
  Partials      398      398           
Impacted Files Coverage Δ
exporter/prometheusexporter/collector.go 100.00% <100.00%> (ø)

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update cadd84d...d0fd1b0. Read the comment docs.

@bogdandrutu bogdandrutu marked this pull request as ready for review March 16, 2021 14:38
@bogdandrutu bogdandrutu requested a review from a team March 16, 2021 14:38
Copy link
Member

@bogdandrutu bogdandrutu left a comment

Choose a reason for hiding this comment

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

Please add a unittest

@bogdandrutu bogdandrutu merged commit c5c673d into open-telemetry:main Mar 18, 2021
Troels51 pushed a commit to Troels51/opentelemetry-collector that referenced this pull request Jul 5, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
4 participants