uken / fluent-plugin-elasticsearch

Apache License 2.0
890 stars 310 forks source link

Increase errors metric on error response in data stream #986

Closed mkmet closed 1 year ago

mkmet commented 1 year ago

If ES responds with an error (e.g., because of a type issue), this isn't visible in any metric (only an error log is generated). Because of this, monitoring solutions based on metrics scraping (like Prometheus) can't detect this issue. This patch increases num_errors metric if there are errors in response from ES in the data stream output.

(check all that apply)