Metric type INFO is not registered in prometheus client model type #2420
Labels
kind/bug
Categorizes issue or PR as related to a bug.
triage/accepted
Indicates an issue or PR is ready to be actively worked on.
What happened:
The fact that INFO is not a valid type on prometheus client model, it prevent us to use prometheus tooling such as prom2json. Parsing custom resource definition that contains info would cause an error like
unknown metric type "info"
What you expected to happen:
I would expect kube-state-metrics with a custom resource definition info should still return a valid type that recognizable by prometheus client_model. I'm thinking either UNTYPED or simply GAUGE with value always 1 should be acceptable
How to reproduce it (as minimally and precisely as possible):
Create custom resource definition with type info, then try to parse it using
prom2json
, likecurl localhost:8080/metrics | prom2json
Anything else we need to know?:
Environment:
kubectl version
): non-relevantThe text was updated successfully, but these errors were encountered: