Sat
Sat

Reputation: 103

Prometheus in Grafana, how to time shift single query backwards

What does not work:

Upvotes: 10

Views: 7546

Answers (2)

markalex
markalex

Reputation: 13432

As mentioned in this feature request there is a workaround for time shifts "into future".

Instead of something like -1h use 0h+1h.

Upvotes: 0

澜塔1016
澜塔1016

Reputation: 756

enter image description here

Since 2.48.01 you may use offset modifier in promQL. However, this will give you the right data with wrong (or confusing, because time offset is not applied to) timestamp.


1 : This was also available since 2.26.0, but only with additional flag --enable-feature=promql-negative-offset

Upvotes: 2

Related Questions