open-telemetry / open-telemetry/opentelemetry-python
[prometheus-exporter] Export Gauge exemplars
Nobody has claimed this yet.
- Dominant language
- Python
- Stars
- 2.6k
- Forks
- 1k
- Avg merge
- 4d 15h
- Merged PRs (30d)
- 19
Description
Is your feature request related to a problem?
The exemplars were added in https://github.com/open-telemetry/opentelemetry-python/pull/4094 and support for the histogram exemplars in the Prometheus exporter is added in https://github.com/open-telemetry/opentelemetry-python/pull/4178
Describe the solution you'd like
Export exemplars for Gauge in the prometheus-exporter
Describe alternatives you've considered
No response
Additional Context
Support for exemplars for Gauge metrics in Prometheus Python client has landed in https://github.com/prometheus/client_python/pull/1063. But it has not been released yet (as of October 16th 2024). This is a requirement to fix this issue.
Would you like to implement a fix?
None
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start at the prometheus-exporter implementation and review the histogram exemplar support in PR #4178, then verify the required Prometheus Python client release includes Gauge exemplar support. Done means Gauge exemplars are exported consistently with histogram exemplars and the behavior is covered by tests.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- prometheus, python
- Domain
- observability
- Issue type
- Feature
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 45/100