I tend to write too fast, I guess I already know why...Prometheus DB is not intended for durability and by default expires data at 15 days.
Importing MRTG's year makes litle or no sense. So If I want to get rid of MRTG, integrating a long filtered history metrics repo (Influxdb ?) that can also be leveraged by Grafana seems the way to go.
--
On Thu, Oct 17, 2019 at 4:37 PM Carlos Mendioroz <cmend...@gmail.com> wrote:I tend to write too fast, I guess I already know why...Prometheus DB is not intended for durability and by default expires data at 15 days.This is a misunderstanding. The Prometheus TSDB is intended for durability. But it is only as durable as the server it's on.This misunderstanding comes from the fact that the Prometheus creators came from Google-level durability needs. We would say the same thing about MRTG's RRA files. They're not any more durable than Prometheus.
There are Prometheus users doing many-year storage in Prometheus. Just like with any SQL database, it takes careful planning of storage durability, backups, etc.
On Thursday, October 17, 2019 at 12:44:29 PM UTC-3, Ben Kochie wrote:On Thu, Oct 17, 2019 at 4:37 PM Carlos Mendioroz <cmend...@gmail.com> wrote:I tend to write too fast, I guess I already know why...Prometheus DB is not intended for durability and by default expires data at 15 days.This is a misunderstanding. The Prometheus TSDB is intended for durability. But it is only as durable as the server it's on.This misunderstanding comes from the fact that the Prometheus creators came from Google-level durability needs. We would say the same thing about MRTG's RRA files. They're not any more durable than Prometheus.That may be (being a misunderstanding) but there are a couple of sentences in the storage area of Prometheus site that drove me in that direction:
- Thus, ,,, and should thus be treated as more of an ephemeral sliding window of recent data.
- If your local storage becomes corrupted for whatever reason, your best bet is to shut down Prometheus and remove the entire storage directory.
Also, given that by default exporters generate a lot of metrics, persisting all those seems like an overkill.
There are Prometheus users doing many-year storage in Prometheus. Just like with any SQL database, it takes careful planning of storage durability, backups, etc.That might be, but my current understanding leads me to think that persisting a subset of the metrics in a dedicated long term reference DB is a better way to go. Would you disagree?
--
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-use...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/prometheus-users/d74c210b-8d30-43bf-8633-abca06ab3609%40googlegroups.com.