How to create grafana panel with timestamp provided in labels section?

Hi @gajananmudaliar !

I’m a bit confused, are you trying to create a gauge or a time-series panel?

For a gauge, maybe you’re looking for:
Options > Legend : {{ timestamp }} in the PromQL query editor.

For time-series panels, It’s not possible as far as I know.

I would still recommend to upgrade to Grafana 9 or 10 (you mentioned Grafana 7)

Also, storing timestamps in a label seems like a bad idea, as it will probably generate high-cardinality metrics, but I guess it depends on what you’re trying to achieve.

Similar question : How to Use a Prometheus Label as a Timestamp for Grafana - #6 by mattabrams