Get data in specific time

Hi, I’m new for using Grafana and Prometheus.

I have problem with get a delta value from begin the day to present.

My way is finding value at specific time to subtract them, but my problem is getting data value at specific time.

Is there any way to get that ?


metric_name{label="name"} - (metric_name{label="name"} @ 1650989000)

The 1650989000 is a Unix timestamp in seconds. You can use a site like this to convert to the proper timestamp.