Closed Jimilian closed 7 years ago
Why this happens?
This plugin checks empty value in format
> https://github.com/fangli/fluent-plugin-influxdb/blob/93cf8c2421f58067af19441832b88178d7f5b9ee/lib/fluent/plugin/out_influxdb.rb#L93
record
itself contains values, but there is no values
in terms of InfluxDB - only tags.
I.e. we push something like ["key1": "v1", "key2": "v2"]
, key1
is tag
and key2
is not - everything is ok, but if key1
and key2
are both marked like tag
influxdb doesn't accept such record.
In this PR I address issue that happens then somebody tries to push record without any value. In this case plugin prints in logs that it doesn't make any sense to push something like that to InfluxDB and continue to work.
According official documentation:
https://docs.influxdata.com/influxdb/v1.1/concepts/key_concepts/
So, if user doesn't provide any value he receives something like:
After that
fluentd
tries to retry... fails... try again... and queue is blocked for some time.