Re: [prometheus-users] Backfilling data into Prometheus

2022-04-17 Thread Stuart Clark

On 12/04/2022 23:06, John Grieb wrote:
I am backfilling a month's worth (March 1st to 31st, 2022) of Zabbix 
trend data (hourly avg values) for a single metric (gauge) with a 
single label (Hostname). There are 746 datapoints in my OpenMetrics 
file which I'm converting to TSDB format using the command:


promtool tsdb create-blocks-from openmetrics 30030360463_history.txt

When I move the data into the Prometheus storage directory the first 
15 day and 17 hours of data are removed for some reason. Can anyone 
tell me why and what I have to do to keep all the data?


What have you set your Prometheus retention period to? By default it is 
2 weeks.


--
Stuart Clark

--
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-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/prometheus-users/30023ad3-bfcb-2c5a-07b8-0e9f2b574174%40Jahingo.com.


[prometheus-users] Backfilling data into Prometheus

2022-04-17 Thread John Grieb
I am backfilling a month's worth (March 1st to 31st, 2022) of Zabbix trend 
data (hourly avg values) for a single metric (gauge) with a single label 
(Hostname). There are 746 datapoints in my OpenMetrics file which I'm 
converting to TSDB format using the command:

promtool tsdb create-blocks-from openmetrics 30030360463_history.txt

When I move the data into the Prometheus storage directory the first 15 day 
and 17 hours of data are removed for some reason. Can anyone tell me why 
and what I have to do to keep all the data?

Regards,

John

-- 
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-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/prometheus-users/2db1f3f5-060e-4836-b005-27b27ecefb6fn%40googlegroups.com.