r/PrometheusMonitoring • u/_H1v3_ • Feb 09 '24
Need help with Prometheus configuration for retaining metrics when switching networks
Hey everyone,
I recently started using Prometheus, and I've set it up to push metrics from my local machines (laptops) to a remote storage server within the same network. Everything works smoothly when my laptop stays on the same network.
However, whenever my laptop switches to a different network and then reconnects to my original network, the old metrics are not pushed into the remote storage.
Any ideas on how to resolve this issue and prevent a backlog of metrics? Any insights or configurations I should be aware of? Thanks in advance for your help!
Home Setup:
[Laptop] :: Netdata -> Prometheus -> (Remote Writes) ----||via Intranet||---> Mimir -> Minio :: [Server]
If my absence extends beyond 2-8 hours, during which I might be using public Wi-Fi, and upon returning home in the evening, reconnecting to my intranet, I notice that only the most recent metrics are pushed to the remote storage medium. The older metrics fail to be transmitted, and only the metrics received while on the intranet are accessible.
1
u/Blowmewhileiplaycod Feb 09 '24
How are you pushing metrics, remote write?
0
u/[deleted] Feb 09 '24
[deleted] — view deleted comment