prometheus / prometheus/node_exporter
Add translation layer to support breaking metric
Open
@discordianfish is already working on this.
Since Nov 16, 2021.
enhancement
- Dominant language
- Go
- Stars
- 13.8k
- Forks
- 2.7k
- Avg merge
- 1d 23h
- Merged PRs (30d)
- 8
Description
We want to change some metric names, for example #2074, but want to avoid a breaking change before the next major release.
Therefor I suggest to introduce a translation layer that allows us to expose new, breaking metrics while preserving the existing metrics by translating the names. Here is an example to illustrate:
https://gist.github.com/discordianfish/4c1760cf0e41c98ba5136e6e55b3e49b
For it to not be a breaking change, I'd suggest exposing the translated metrics on /metrics and the new ones on /metrics/next
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.
Assessment
This issue has not been assessed yet.