Backfilling data into Prometheus

208 views
Skip to first unread message

John Grieb

unread,
Apr 17, 2022, 6:53:25 AM4/17/22
to Prometheus Users
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 300300000360463_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

Stuart Clark

unread,
Apr 17, 2022, 7:40:55 AM4/17/22
to John Grieb, Prometheus Users
What have you set your Prometheus retention period to? By default it is
2 weeks.

--
Stuart Clark

Reply all
Reply to author
Forward
0 new messages