How much back in time can i go while retrieving data using prometheus HTTTP API?

17 views
Skip to first unread message

Tekraj Chhetri

unread,
Mar 19, 2020, 7:57:50 PM3/19/20
to Prometheus Users
Hi,

I am trying to pull data of 1 year using prometheus but I noticed I was only able to get recent 1 months data. If I wanted to pull 1 year data, how should I do if it is possible to get?

Thank you.

Rahul Hada

unread,
Mar 19, 2020, 9:09:36 PM3/19/20
to Tekraj Chhetri, Prometheus Users
Hi,

Prometheus default retention period is 30 days. Please verify once that you have set the retention period to 1 year and you have enough capacity to store the data. Then you can check for the given time range.

Stay safe !

--
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 prometheus-use...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/prometheus-users/ec6053fc-54fe-487e-86fc-47a7ec2efa1c%40googlegroups.com.

Tekraj Chhetri

unread,
Mar 19, 2020, 10:37:04 PM3/19/20
to Prometheus Users
Hi,

Thank you for your response. At the moment, I am only able to pull for a month. This means that only a month data is available. 


On Friday, 20 March 2020 03:09:36 UTC+2, Rahul Hada wrote:
Hi,

Prometheus default retention period is 30 days. Please verify once that you have set the retention period to 1 year and you have enough capacity to store the data. Then you can check for the given time range.

Stay safe !

On Fri, 20 Mar, 2020, 5:27 AM Tekraj Chhetri, <tekraj...@gmail.com> wrote:
Hi,

I am trying to pull data of 1 year using prometheus but I noticed I was only able to get recent 1 months data. If I wanted to pull 1 year data, how should I do if it is possible to get?

Thank you.

--
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 promethe...@googlegroups.com.

Rahul Hada

unread,
Mar 19, 2020, 11:23:57 PM3/19/20
to Tekraj Chhetri, Prometheus Users
Hi, Yes you can only visualise the data available in your storage. This line defines the retention period.
--storage.tsdb.retention.time=90d   . Here the retention is 90 days, so we can see the data of 90 days. Hope this helps.

Stay safe !

To unsubscribe from this group and stop receiving emails from it, send an email to prometheus-use...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/prometheus-users/6002092f-e320-42d4-9807-9e6c2151fea5%40googlegroups.com.
Reply all
Reply to author
Forward
0 new messages