V
V
Viktor2018-02-06 21:57:18
Database
Viktor, 2018-02-06 21:57:18

Prometheus, database query, how to get old data (24 hours ago)?

There is a request to Prometheus
firma_pokazanya
Everything is fine, we receive data in the current time and build a graph in Grafana , we
need to get the same data a day ago (minus 24 hours) - in Grafane itself, I know how to see this data in a separate graph.
But to see current data and a day ago on the same chart, you need a correct request from Prometheus, current data (firma_pokazanya) and data a day ago (firma_pokazanya minus 24 hours).
Ideally, it will generally receive a request
Current data minus Data a day ago, and then I will alert it based on this data

Answer the question

In order to leave comments, you need to log in

1 answer(s)
R
Roman Mirilaczvili, 2018-06-10
@2ord

offset 1d

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question