NETWAYS / NETWAYS/check_prometheus
[Feature]: Output Formatting
Nobody has claimed this yet.
- Dominant language
- Go
- Stars
- 21
- Forks
- 5
- Avg merge
- 2m
- Merged PRs (30d)
- 1
Description
Describe the feature request
Hi. Our checks use Prometheus queries that return a floating point number. This works, but especially percentages and time values are hard to interpret, see the given examples.
A format flag for the return values would be great to solve this. It does not have to be as complex as in Grafana, but some basics would be nice.
Formats that would be currently useful to us:
- number (default)
- percent (0-1)
- time (seconds)
- data (bytes [1000 bits])
Examples:
io-usage in percent
certificate expiration in seconds
Contributor guide
No contributing guide indexed for this repository
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 by tracing how Prometheus query results are handled and how check output is currently rendered. Define the format flag's scope around the requested number, percent, time, and data formats, including the default behavior. Done means the selected format is applied consistently to returned values and the existing number output remains the default.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- go, prometheus
- Domain
- cli, observability-sre
- Issue type
- Feature
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 30/100