remote_write:remote_read:
Hi,I think I'm missing something basic about how remote read works. I set up remote read and remote write to InfluxDB. I successfully verified that remote write is working by setting up Grafana to query InfluxDB, and I'm seeing Prometheus metrics showing up there.So far so good.Next, I wanted to test out remote read. My understanding is that when this is set up, Prometheus no longer uses a local TSDB, nor a local cache, and every single query gets fulfilled by the remote read endpoint. To test this out, I stopped the InfluxDB server. To my surprise, the PromQL queries in Prometheus continued to work just fine. I expected the queries to fail since the remote InfluxDB server is unavailable.Am I misunderstanding how this works?
Config:remote_write:remote_read:Thanks!
Dave
--
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-users+unsubscribe@googlegroups.com.
To post to this group, send email to prometheus-users@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/prometheus-users/3286fa97-c40a-49c3-9c8a-4b4116568922%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
On 13 March 2018 at 05:00, Dave Cadwallader <dcadwa...@gmail.com> wrote:Hi,I think I'm missing something basic about how remote read works. I set up remote read and remote write to InfluxDB. I successfully verified that remote write is working by setting up Grafana to query InfluxDB, and I'm seeing Prometheus metrics showing up there.So far so good.Next, I wanted to test out remote read. My understanding is that when this is set up, Prometheus no longer uses a local TSDB, nor a local cache, and every single query gets fulfilled by the remote read endpoint. To test this out, I stopped the InfluxDB server. To my surprise, the PromQL queries in Prometheus continued to work just fine. I expected the queries to fail since the remote InfluxDB server is unavailable.Am I misunderstanding how this works?Remote read is an additional data source, local storage is still the primary storage. For queries over recent data which will all be local, remote read may not even be used.Brian
Config:remote_write:remote_read:Thanks!
Dave
--
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 post to this group, send email to promethe...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/prometheus-users/3286fa97-c40a-49c3-9c8a-4b4116568922%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
I have met the same issue, prometheus not read from InfluxDB. Is there anyway to make prometheus read from InfluxDB instead of local storage?
If you have remote read configured Prometheus will use that as well as local storage.
If you are wanting to use InfluxDB primarily, just set local retention to say 4 hours or something.
在 2018年3月13日星期二 UTC+8下午1:00:12,Dave Cadwallader写道:Hi,
I think I'm missing something basic about how remote read works. I set up remote read and remote write to InfluxDB. I successfully verified that remote write is working by setting up Grafana to query InfluxDB, and I'm seeing Prometheus metrics showing up there.
So far so good.
Next, I wanted to test out remote read. My understanding is that when this is set up, Prometheus no longer uses a local TSDB, nor a local cache, and every single query gets fulfilled by the remote read endpoint. To test this out, I stopped the InfluxDB server. To my surprise, the PromQL queries in Prometheus continued to work just fine. I expected the queries to fail since the remote InfluxDB server is unavailable.
Am I misunderstanding how this works?
Config:
remote_write:
remote_read:
Thanks!
Dave
--
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 post to this group, send email to promethe...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/prometheus-users/372bf89e-1f55-4eb4-a625-01d2715fd5fb%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
-- Stuart Clark
To view this discussion on the web visit https://groups.google.com/d/msgid/prometheus-users/5262b07e-e219-be91-41b5-e30a3d4c8d6f%40Jahingo.com.
For more options, visit https://groups.google.com/d/optout.