Reading prometheus data chunks using python/go

90 views
Skip to first unread message

Puneet Singh

unread,
Feb 7, 2023, 7:35:39 AM2/7/23
to Prometheus Users
Hi Team,

I have a directory having some old prometheus monitoring data ~700G.
as i configure the prometheus service to use the old data directory ( using storage.tsdb.path) , the prometheus service fails to start.

i see error messages which indicate that Scrape discovery , rule and notifier manager manager stopped,  and error opening storage failed from main.go.

Is it possible to read the chunk files ? (example -  /data/prometheus/01..C89X/chunks/000001 )
Can anyone provide some pointers/examples on how to read prometheus chunk files using (preferably) python / go APIs or a command ?

Please do let me know if i can provide any further information here.
- puneet 

Reply all
Reply to author
Forward
0 new messages