prometheus / prometheus/node_exporter

Add translation layer to support breaking metric

Open
#2,213 2 comments 0 reactions 1 assignee View on GitHub

@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

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.