-
Notifications
You must be signed in to change notification settings - Fork 3k
chore: otel prom metadata translation pass namespace config #39826
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
chore: otel prom metadata translation pass namespace config #39826
Conversation
Hey @jmichalek132, could you clarify what problem we're solving? I don't see how namespace is related to Metadata 🤔 |
Just realized a while a bit ago if you use the namespace feature to change the metric name and don't do the same for the metric name in metadata, your tool i.e. grafana won't be able to match them and show metadata. |
This PR was marked stale due to lack of activity. It will be closed in 14 days. |
Good catch! Do you wanna finish the PR and add tests for it? |
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.
Looking good, I have just some comments around changelogs and tests
.chloggen/jm-otel-prom-metadata-translation-pass-namespace-config.yaml
Outdated
Show resolved
Hide resolved
.chloggen/jm-otel-prom-metadata-translation-pass-namespace-config.yaml
Outdated
Show resolved
Hide resolved
pkg/translator/prometheusremotewrite/otlp_to_openmetrics_metadata_test.go
Outdated
Show resolved
Hide resolved
pkg/translator/prometheusremotewrite/otlp_to_openmetrics_metadata_test.go
Outdated
Show resolved
Hide resolved
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.
LGTM, thanks!
…emetry#39826) <!--Ex. Fixing a bug - Describe the bug and how this fixes the issue. Ex. Adding a feature - Explain what this achieves.--> #### Description Fixing passing metric namespace to the otel metadata translation, so when provided metric name matches the metric name in metadata <!--Describe what testing was performed and which tests were added.--> #### Testing Added unit test coverage --------- Co-authored-by: Arthur Silva Sens <[email protected]>
…emetry#39826) <!--Ex. Fixing a bug - Describe the bug and how this fixes the issue. Ex. Adding a feature - Explain what this achieves.--> #### Description Fixing passing metric namespace to the otel metadata translation, so when provided metric name matches the metric name in metadata <!--Describe what testing was performed and which tests were added.--> #### Testing Added unit test coverage --------- Co-authored-by: Arthur Silva Sens <[email protected]>
Description
Fixing passing metric namespace to the otel metadata translation, so when provided metric name matches the metric name in metadata
Testing
Added unit test coverage