Unverified Commit 66a460bf authored by Brian Brazil's avatar Brian Brazil Committed by GitHub

De-recommend checking full label consistency for custom collectors. (#1047)

Signed-off-by: 's avatarBrian Brazil <brian.brazil@robustperception.io>
parent 9760dc3e
......@@ -250,8 +250,9 @@ Client libraries MUST NOT under any circumstances allow users to have different
label names for the same metric for Gauge/Counter/Summary/Histogram or any
other Collector offered by the library.
If your client library does validation of metrics at collect time, it MAY also
verify this for custom Collectors.
Metrics from custom collectors should almost always have consistent label
names. As there are still rare but valid use cases where this is not the case,
client libraries should not verify this.
While labels are powerful, the majority of metrics will not have labels.
Accordingly the API should allow for labels but not dominate it.
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment