Hi,
I'm trying to construct a query to display the leader of a zookeeper ensemble.
This query will return a timeseries for each node in our cluster and the one that is leader will have a value of 1 and the followers will have a value of 0.
This will give back something like:
I have a separate chart and alert on the number of leaders (if we have no leaders alert).
What I want is a display of hostname of the node that has the value 1 (there should be a max of 1 result source with a value of 1 but might none if there's no leader). With single stat view I can display either the value or the label of the query but can't seem to display a tag or source for a source where the value is 1.
Any ideas?
John
Thanks for reaching out to the community John.
I have a query I would like you to try. It uses the Tabular View which does allow a source and value.
This one in particular will track the leader (if there is one). https://metrics.wavefront.com/u/t6PwpqlNfH
However, I see your intention is to put more stats onto the single-stat view. I can put that in as a feature request if you like as well.
Sincerely,
Jonathan
Thanks for reaching out to the community John.
I have a query I would like you to try. It uses the Tabular View which does allow a source and value.
This one in particular will track the leader (if there is one). https://metrics.wavefront.com/u/t6PwpqlNfH
However, I see your intention is to put more stats onto the single-stat view. I can put that in as a feature request if you like as well.
Sincerely,
Jonathan
Thanks for reaching out to the community John.
I have a query I would like you to try. It uses the Tabular View which does allow a source and value.
This one in particular will track the leader (if there is one). https://metrics.wavefront.com/u/t6PwpqlNfH
However, I see your intention is to put more stats onto the single-stat view. I can put that in as a feature request if you like as well.
Sincerely,
Jonathan
Hi John,
Did the chart I sent you accomplish your goal? Can I provide anymore help on this matter?
Sincerely,
Jonathan
Hi Jonathan,
Sorry for not getting back to you. I was dragged off to other work and forgot I raised the ticket.
Your query does just what i need!
Thanks
John