Is there any configuration to scrape the metrics from the time when the last successful transaction happened.
Or else is there any other ways by which we can solve this issue.
On Friday, 27 November 2020 at 04:35:18 UTC shrika...@gmail.com wrote:Is there any configuration to scrape the metrics from the time when the last successful transaction happened.No. Prometheus has no "back-fill" capability, or any ability to ingest historical data.
Or else is there any other ways by which we can solve this issue.Using something other than federation. remote_write is able to buffer up data locally if the endpoint is down.Prometheus itself can't accept remote_write requests, so you'd have to write to some other system which can. I suggest VictoriaMetrics, as it's simple to run and has a very prometheus-like API, which can be queried as if it were a prometheus instance.
--
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/aa8ec4c9-7296-42e3-9658-41eac1c677a0n%40googlegroups.com.
> Soon! https://github.com/prometheus/prometheus/pull/8084That'll be a cool feature for data migration - thanks!Unfortunately I don't think it helps with the OP's problem, unless:1. federation is extended to query historical data (with range queries?)2. prometheus supports a remote_write endpoint for backfilling
I can suggest another option for the OP though. They can run *two* independent federation nodes, such that they are never both down at the same time. Then put promxy in front of them, and query via that. At query time, it will fill gaps in one server with data from the other.Re Thanos: is there a simple one-process deployment for that yet? What I like about VictoriaMetrics is that I can run/opt/victoria-metrics/victoria-metrics-prod -storageDataPath=/var/lib/victoria-metrics/data -retentionPeriod=6 \-httpAuth.username=admin -httpAuth.password=XXXXXXand I'm done.
--
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/cdaa27d1-a4c3-47e3-91f6-25684449a529n%40googlegroups.com.
> Soon! https://github.com/prometheus/prometheus/pull/8084That'll be a cool feature for data migration - thanks!Unfortunately I don't think it helps with the OP's problem, unless:1. federation is extended to query historical data (with range queries?)2. prometheus supports a remote_write endpoint for backfillingNo, it doesn't solve federation gaps. Only remote_write and Thanos do this correctly.IMO, Federation is mostly useful in extremely high-scale environments where the metrics on the "scrape Prometheus" instances are mostly used for recording rule rollups, and only the federation data is used.WIth remote_write and Thanos, I mostly see Federation as a legacy technique. It was an easy form of rollup and aggregation for large scale that was implemented in the early days.I can suggest another option for the OP though. They can run *two* independent federation nodes, such that they are never both down at the same time. Then put promxy in front of them, and query via that. At query time, it will fill gaps in one server with data from the other.Re Thanos: is there a simple one-process deployment for that yet? What I like about VictoriaMetrics is that I can run/opt/victoria-metrics/victoria-metrics-prod -storageDataPath=/var/lib/victoria-metrics/data -retentionPeriod=6 \-httpAuth.username=admin -httpAuth.password=XXXXXXand I'm done.
Or else is there any other ways by which we can solve this issue.Using something other than federation. remote_write is able to buffer up data locally if the endpoint is down.Prometheus itself can't accept remote_write requests, so you'd have to write to some other system which can. I suggest VictoriaMetrics, as it's simple to run and has a very prometheus-like API, which can be queried as if it were a prometheus instance.I recommend Thanos, as it scales better and with less effort than VictoriaMetrics. It also uses PromQL code directly, so you will get the same results as Prometheus, not an emulation of PromQL.
On Sun, Nov 29, 2020 at 11:51 AM Aliaksandr Valialkin <val...@gmail.com> wrote:On Fri, Nov 27, 2020 at 11:11 AM Ben Kochie <sup...@gmail.com> wrote:Or else is there any other ways by which we can solve this issue.Using something other than federation. remote_write is able to buffer up data locally if the endpoint is down.Prometheus itself can't accept remote_write requests, so you'd have to write to some other system which can. I suggest VictoriaMetrics, as it's simple to run and has a very prometheus-like API, which can be queried as if it were a prometheus instance.I recommend Thanos, as it scales better and with less effort than VictoriaMetrics. It also uses PromQL code directly, so you will get the same results as Prometheus, not an emulation of PromQL.Could you share more details on why you think that VictoriaMetrics has scalability issues and is harder to set up and operate than Thanos? VictoriaMetrics users have quite the opposite opinion. See https://victoriametrics.github.io/CaseStudies.html and https://medium.com/faun/comparing-thanos-to-victoriametrics-cluster-b193bea1683 .Thanos uses object storage, which avoids the need for manual sharding of TSDB storage. Today I have 100TiB of data stored in object storage buckets. I make no changes to scale up or down these buckets.
VictoriaMetrics stores data on persistent disks.
--
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/cf673b26-117f-477d-8630-ee90ad5c0fd8n%40googlegroups.com.
It looks like there are also Standard (HDD) persistent disks available, at $0.04/GB. Still twice as expensive as cloud though, even if HDD performance is acceptable.Cloud also has other options which could make if the bulk of the data is rarely accessed, like nearline ($0.01/GB)
--
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/1d75d073-5fcb-41f0-a4fb-d2d59e28f0e5n%40googlegroups.com.