-
Notifications
You must be signed in to change notification settings - Fork 488
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
feat(otelcol/exp/prom): add support for resource_to_telemetry_conversion #5807
feat(otelcol/exp/prom): add support for resource_to_telemetry_conversion #5807
Conversation
docs/sources/flow/reference/components/otelcol.exporter.prometheus.md
Outdated
Show resolved
Hide resolved
Thanks @hainenber! @ptodev Can you review this one? |
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.
Thank you! LGTM - I just added a few minor suggestions.
test_metric_gauge{bar_one="bar",foo_one="foo",instance="instance",service_instance_id="instance",job="myservice",service_name="myservice",raw="test"} 1234.56 | ||
`, | ||
enableOpenMetrics: true, | ||
resourceToTelemetryConversion: true, |
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.
It'd be nice to have a test or two where we have resource attributes but resourceToTelemetryConversion: false
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.
Added in latest commit. PTAL. Thanks!
docs/sources/flow/reference/components/otelcol.exporter.prometheus.md
Outdated
Show resolved
Hide resolved
Signed-off-by: hainenber <[email protected]>
Co-authored-by: Clayton Cornell <[email protected]>
…heus.md Co-authored-by: Paulin Todev <[email protected]>
…is false Signed-off-by: hainenber <[email protected]>
65df9d7
to
4077196
Compare
PR Description
Support conversion of OTEL's resource attributes to Prometheus-compatible datapoint attributes. Strongly inspired by OTEL's contributor implementation
Which issue(s) this PR fixes
Closes #5631
Notes to the Reviewer
PR Checklist