So if I'm understanding you correctly. You have multiple pods
exporting a gauge based on a remote request, and because it is load
balanced the request could go to one of many pods, and you are trying
to figure out which one is the most recent? This sounds like a
perfect use case for pushgateway as it will have the latest value, and
the metric will survive pod death.
That said, if you are married to the current pattern you have set up,
the answer would be to export a corresponding timestamp metric so you
can select the most recently updated pod's gauge value. I hope this
helps.
--Matt
> --
> You received this message because you are subscribed to the Google Groups "Prometheus Developers" group.
> To unsubscribe from this group and stop receiving emails from it, send an email to
prometheus-devel...@googlegroups.com.
> To view this discussion on the web visit
https://groups.google.com/d/msgid/prometheus-developers/37460f3a-1ef0-69b5-d3ad-02cf2f8e4154%40Jahingo.com.
--
--Matt