Hello everyone,

I'm trying to craft a general availability dashboard of our infrastructure 
in grafana, exclusively with Prometheus metrics.

Most of our checks consists of metrics like "up" where the result is either 
0 or 1. It makes it very easy to make different panels in grafana and 
additional operations to get informations like "least available component", 
"general combined availability of infra", etc...

But there's a few situations where I would like a query to display a result 
of 0 or 1... But cannot.

For example, I might have a cluster where one of the servers can fail and 
still display an available service (and a result of 1 for my query), but 
having 2 failed servers would get me a result of "0" for my query.
For another service, I need the result of the query to be above a certain 
threshold to consider it “healthy” (and a result of 1).

Is it possible with a promQL query to display a result of 0 or 1 based on 
conditions specified in the query itself? I think this should be doable, 
but I can't find how.

Can someone help me? Or am I looking at this the wrong way?


Regards,

--
Erwin

-- 
You received this message because you are subscribed to the Google Groups 
"Prometheus Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/prometheus-users/28c91c77-820f-4f36-9d82-4e62cbb5dcc5n%40googlegroups.com.

Reply via email to