Most recent value or last seen value
All you need is my_metric
, which will by default return the most recent value no more than 5 minutes old.
If you're using Prometheus directly using the query_range API endpoint you will get time series. If you switch to the query API endpoint you will get the last value.
In Grafana you can switch from time series to last value by switching the Instant-toggle.