Sayf, everything is well copied, the total size uncompressed is around 
55MB, the same on the server. Moreover, that shouldn't be a problem cause 
the whole thing initially worked the night.

Julius, I set retention time to 30 days, still the same. I tricked the 
system time, I set it to the time of the collection (basically the 
container gets the same time as the host). Now the garbage collector is not 
called anymore but I still can't see the data. Prometheus returns with 
status:"success" but the result vector is empty.
Le vendredi 24 avril 2020 à 15:51:43 UTC+2, Julius Volz a écrit :

> Did you set the retention (--storage.tsdb.retention.time) to long enough 
> on your new Prometheus instance, so that the old data doesn't slide out of 
> the retention window?
>
> On Fri, Apr 24, 2020 at 2:29 PM KARIM MANAOUIL <[email protected]> wrote:
>
>> Hi all,
>>
>> I am doing analysis of a Kubernetes cluster and because I don't have 
>> permanent access to it, I thought about this idea of importing Prometheus 
>> TSDB and analyze the data using a local Prometheus instance. I succeeded to 
>> do that using snapshots as told here 
>> <https://www.robustperception.io/taking-snapshots-of-prometheus-data>. I 
>> dumped the snapshot into my local machine, spawned up a Prometheus 
>> container setting tsdb.path to the snapshot's path and it worked great, I 
>> can see the old data and perform queries. One night after, I woke up, 
>> uncompressed the snapshot again and launched a fresh new Prometheus 
>> instance but unfortunately now I can't see the old data. I have no idea why.
>>
>> The documentation <https://prometheus.io/docs/prometheus/1.8/storage/> 
>> says something about heap-size and memory-chunks but that's doesn't work 
>> and arguments are invalid when I tried them. 
>>
>> I noticed after the server is launched, the head is garbage collected and 
>> maybe this is the reason but honestly I have no idea.
>>
>> So please is there anyway to correct this issue and be able to use my old 
>> restored snapshot ?
>>
>> Thanks
>>
>> -- 
>>
> 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 [email protected].
>> To view this discussion on the web visit 
>> https://groups.google.com/d/msgid/prometheus-users/de43a1a9-d2d9-4c4a-ae1f-e16850a4da54%40googlegroups.com
>>  
>> <https://groups.google.com/d/msgid/prometheus-users/de43a1a9-d2d9-4c4a-ae1f-e16850a4da54%40googlegroups.com?utm_medium=email&utm_source=footer>
>> .
>>
>

-- 
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 [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/prometheus-users/eff2400f-7549-454c-9790-d835352cd54a%40googlegroups.com.

Reply via email to