Open hdhoang opened 2 years ago
Can you please raise a Pull Request with what you have done with the isScientific
guard, then I'll have a look and add to it to see if I can solve this.
It would be helpful if you could post the values.yaml
you used for your bitnami-packaged ZooKeeper to reproduce this too.
Hi, we run some bitnami-packaged ZK3.7. We enable prometheus support on it, and the
mntr
data format changes to prometheus/openmetric exposition format:In particular, recorded stats may now have scientific notation, instead of float-only.
I have worked around this locally by augmenting #332 with a
isScientific
guard before quitting. However, the recordedstate
file fails to match regex at https://github.com/HariSekhon/Nagios-Plugins/blob/248dc2c3dd324262cf79902a77604f568f480b13/check_zookeeper.pl#L312-L319 Thus we always seeSo far, I can't find any confirmation that enabling prometheus provider change
mntr
format at https://zookeeper.apache.org/doc/current/zookeeperMonitor.html#PrometheusPlease help to support this format, thanks.