New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
mgr: prometheus: set metadata metrics value to '1' (#22717). #19979
Conversation
Signed-off-by: Konstantin Shalygin <k0ste@k0ste.ru>
9500a7b
to
55f8db1
Compare
Hmm, I had tested the ceph_disk_occupation stuff with an Anyway, this change looks reasonable to me |
Do you execute this query in Grafana or prometheus? I do get a metric value (its 0), in Grafana that is not obvious though. So the reason why this behaves like this is due to the use of While I don't have a strong opinion whether this metadata metric value should be 1 or 0, the initial motivation was to keep the value neutral in a graph...so 0. I.e. should someone add that metric to a graph (why would be beyond me) it would simply be 0. |
Please, see screenshot at http://tracker.ceph.com/issues/22717 Difference between When And when Now see how it look on graph (14 Jan is when I set metadata metrics to '1'): Obviously '0' returned instead |
If you use the |
When I look at https://www.robustperception.io/how-to-have-labels-for-machine-roles/ and https://www.robustperception.io/exposing-the-software-version-to-prometheus/, they use a |
Yes... |
@jcsp yes agreed |
By default we have pool metrics like this:
When I was try to join
name
label from metadata series (to use label with Grafana) like this:Result returned without metric, only labels:
This is because metadata metric always have value '0'.
This behavior will be fixed if set value to '1'.
http://tracker.ceph.com/issues/22717