Closed swen128 closed 2 years ago
Thanks!
Thanks for fast responses!
Are there any plans on releasing a new version soon with this fix included?
Sorry, I forgot to release it. I've released it just now: https://rubygems.org/gems/fluent-plugin-prometheus/versions/2.0.3
Fixes #195
After the metrics mechanism change (#191), the
in_prometheus_output_monitor
plugin tries to getnum_errors
metric via thestatistics
method in the output plugin. This method, however, returns a hash containing thenum_errors
metric as a keyretry_count
, which causes the problem.This PR fixes
in_prometheus_output_monitor
so that it finds theretry_count
key and set the value to theoutput_status_num_errors
metric.