Closed sabueso closed 7 years ago
I'm not sure this is a bug of influxdb plugin because influxdb output plugin simply sends incoming records into influxdb. This is same as file output plugin. Maybe, you need to check which point causes disorderd problem.
I'm trying to enable some debug traces to see what's happening. Thanks for your help, i'll keep this ticket updated.
A note i forgot make. Once the insertions becomes"disordered", they don't stop until you restart td-agent.
> select * from virtualbubuntu
name: virtualbubuntu
time _seq cpu_usage disk_percent disk_usage percent_mem timestamp used_mem value
---- ---- --------- ------------ ---------- ----------- --------- -------- -----
1483819528000000000 0 0.5 57.7 2 21 2017-01-07T20:06:22Z 194
1483819528000000000 2 0.5 57.7 2 21 2017-01-07T20:06:32Z 194
1483819548000000000 1 1 57.7 2 21 2017-01-07T20:06:42Z 194
1483819548000000000 2 1 57.7 2 21 2017-01-07T20:06:52Z 194
1483819568000000000 0 1 57.7 2 21 2017-01-07T20:07:02Z 194
1483819568000000000 2 0.5 57.7 2 21 2017-01-07T20:07:12Z 194
1483819588000000000 0 2 57.7 2 21 2017-01-07T20:07:22Z 194
1483819588000000000 1 1 57.7 2 21 2017-01-07T20:07:32Z 194
1483819608000000000 2 1.5 57.7 2 21 2017-01-07T20:07:52Z 194
1483819608000000000 1 1 57.7 2 21 2017-01-07T20:07:42Z 194
I'm going to close this ticket, my problem is fixed, and i'll write some considerations before do this:
-Maybe, i missunderstood about how InfluxDB works, writing and showing data.
-I resolved my problem specifing a timestamp from origin BUT If you specify "time" as timestamp value for time value, for some reason, is not used, dropped, and inserted with insertion timestamp. I don't know if this is a bug, of if this comes from the broker (RabbitMQ in my case).-
Thanks for you help!
Hi!
I'm trying to insert in some sequentials writes in InfluxDB comming from a "not stable connection environment". Td-agent, basically reads from rabbitmq, and insert into a measurement schema. The configuration in the server side is this:
The problem comes when i cut off the connection between my client and server: when RabbitMQ is reconnected, all the stored messages pass between host and server in order, and they are diferents (they have an additional "timestamp" field) but they are written totally disordered at InfluxDB
Some example messages:
Some considerations: a) This is not happening when connection is not cutted off between AMQP server altough you're writing these at InfluxDB. All messages are written in order. b) RabbitMQ is passing once message (line) at time. c) If i replace InfluxDB for file output plugin, this works correctly and all lines are written sequentially onto the file, as we were passed across.
Can this be a bug? Thanks!