I believe [1h] in that context means use the data series of 1h intervals.

I wanted to specify the amount of time in the graph.

I did manage to do it — next to the data source, you can select query options, 
I set relative time to 7 days to get a week of data. 

> On 9 Mar 2021, at 10:24, Charls P John <[email protected]> wrote:
> 
> Hi MS,
> 
> Did you try metric_name{label1="value1"}[1h] ?
> 
> On Tue, Mar 9, 2021, 14:16 'M S' via Prometheus Users 
> <[email protected] 
> <mailto:[email protected]>> wrote:
> How do I specify that I want see the last 1 hour of data only, or I want to 
> see 2 days of data?
> 
> -- 
> You received this message because you are subscribed to the Google Groups 
> "Prometheus Users" group.
> To unsubscribe from this group and stop receiving emails from it, send an 
> email to [email protected] 
> <mailto:prometheus-users%[email protected]>.
> To view this discussion on the web visit 
> https://groups.google.com/d/msgid/prometheus-users/D462A65B-689E-406E-877A-C5F3CA6BDD54%40yahoo.com
>  
> <https://groups.google.com/d/msgid/prometheus-users/D462A65B-689E-406E-877A-C5F3CA6BDD54%40yahoo.com>.
> 
> -- 
> You received this message because you are subscribed to the Google Groups 
> "Prometheus Users" group.
> To unsubscribe from this group and stop receiving emails from it, send an 
> email to [email protected] 
> <mailto:[email protected]>.
> To view this discussion on the web visit 
> https://groups.google.com/d/msgid/prometheus-users/CAJ7d%2BpQ1pTjzQ1y_9qLm-%3D20axYyn%2B0HjVvGB2eoWikRXjeZpg%40mail.gmail.com
>  
> <https://groups.google.com/d/msgid/prometheus-users/CAJ7d%2BpQ1pTjzQ1y_9qLm-%3D20axYyn%2B0HjVvGB2eoWikRXjeZpg%40mail.gmail.com?utm_medium=email&utm_source=footer>.

-- 
You received this message because you are subscribed to the Google Groups 
"Prometheus Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/prometheus-users/E6276B78-92AD-4BB2-B48A-A17FF7B1EADB%40yahoo.com.

Reply via email to