Grafana Prometheus display Epoch Time

Hey all, I have a Prometheus metric bgpPeerFsmEstablishedTime which indicates how long in seconds a BGP session has been in the established state. Using the Prometheus query time() - bgpPeerFsmEstablishedTime, I get the epoch time. How can I display this in Grafana as a date/time? I’ve tried using the Datetime ISO unit (stat panel). However when refreshing this value changes every time when it shouldn’t.

This topic was automatically closed after 365 days. New replies are no longer allowed.