prometheus / prometheus/client_python
Enum metric's `states` parameter doesn't accept an Enum
Open
Nobody has claimed this yet.
- Dominant language
- Python
- Stars
- 4.4k
- Forks
- 876
- Avg merge
- 8d 4h
- Merged PRs (30d)
- 1
Description
It would be neat - and more idiomatic - if the Enum metric took an Enum object as its states parameter.
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
The issue names the Enum metric and its states parameter but provides no files, tests, or entry point. Start by locating the Enum metric implementation and existing states handling, then check related tests; done means an Enum object is accepted as states without breaking existing usage.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- python
- Domain
- observability-sre
- Issue type
- Feature
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 45/100