Now replying to my own question and thread, hope this is ok here:
> My hope was that, if properly configured, InfluxDB-Relay buffers
failed writes. However, my tests show that this is
> not the case (although it is supposed to work). Did someone
experience something similar?
Actually InfluxDB Relay works like it should. For my test scenario, I
only configured one InfluxDB node into the relay. When doing this,
InfluxDB Relay will not buffer failed writes.
But when configuring two InfluxDB nodes, the failed writes are buffered
and written in a batch as soon as one of the two instances is back online.
Sample config:
[[http]]
name = "demo-influxrelay-http"
bind-addr = "127.0.0.1:9096"
output = [
{ name="local1", location = "http://127.0.0.1:8086/write",
timeout="600s", buffer-size-mb = 100, max-batch-kb = 50 },
{ name="local2", location = "http://127.0.0.1:8011/write",
timeout="600s", buffer-size-mb = 100, max-batch-kb = 50 },
]
Best regards
Valentin
On 04.05.2017 11:08, Valentin Höbel wrote:
Dear list,
I am playing around with Icinga2 and InfluxDB.
My setup:
Icinga2 -> InfluxDB-Feature -> InfluxDB
I noticed that when InfluxDB is not available, Icinga2 seems not to
buffer failed writes. Instead, all values are lost when I e.g. shut
down InfluxDB for two minutes.
Is there a way to let Icinga2 buffer all writes until InfluxDB is
available again?
In addition, I added InfluxDB-Relay to the chain:
Icinga2 -> InfluxDB-Feature -> InfluxDB-Relay -> InfluxDB
My hope was that, if properly configured, InfluxDB-Relay buffers
failed writes. However, my tests show that this is not the case
(although it is supposed to work). Did someone experience something
similar?
My goal is to somehow "save" the metrics if InfluxDB is down for a
couple of minutes. I am thinking of setting up a MessageBus and let
Icinga2 write the metrics there; however, I would like to avoid that
construct.
Best regards,
Valentin
--
Valentin Höbel
Senior Consultant IT Infrastructure
mobil 0711-95337077
open*i GmbH
Talstraße 41 70188 Stuttgart Germany
Geschäftsführer Tilo Mey
Amtsgericht Stuttgart, HRB 729287, Ust-IdNr DE264295269
Volksbank Stuttgart EG, BIC VOBADESS, IBAN DE75600901000340001003
_______________________________________________
icinga-users mailing list
icinga-users@lists.icinga.org
https://lists.icinga.org/mailman/listinfo/icinga-users