Hey all,

So I have a metric `fgHaStatsMasterSerial` which returns the following:
fgHaStatsMasterSerial{fgHaStatsHostname="HOSTNAME",fgHaStatsIndex="1",fgHaStatsMasterSerial="SERIAL2"}
 
1

The only thing I care about from that metric is the fgHaStatsMasterSerial 
label however is isn't very user friendly/pretty to view. So I'd like to 
perform a lookup against a different metric `fgHaStatsSerial` which returns 
a series for each device in the cluster. E.g.
fgHaStatsSerial{fgHaStatsHostname="HOST1",fgHaStatsIndex="1",fgHaStatsSerial="SERIAL1"}
 
1 
fgHaStatsSerial{fgHaStatsHostname="HOST2",fgHaStatsIndex="2",fgHaStatsSerial="SERIAL2"}
 
1

I'd like to pull the fgHaStatsHostname variable from that metric and 
display it to the user. I'm essentially just trying to get the hostname of 
the current master in the cluster.

How could I accomplish this?

-- 
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 prometheus-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/prometheus-users/8905b147-30f2-4acd-8fce-cfb2624f523en%40googlegroups.com.

Reply via email to