-
Notifications
You must be signed in to change notification settings - Fork 5.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
ceph input plugin cluster metrics broken on Luminous #5277
Comments
@danielnelson It does still work in 1.8 indeed. I didn't quite check in which release #4721 got shipped and just looked at the date of the PR. 1.9 definitely broken.
FWIW wrt #3387 So basically I think the code in the telegraph ceph plugin can't make too many assumptions about the exact json format since it can change across Ceph releases ....
|
Agreed, and luckily documented by ceph. We'll have to revert some of the changes in 4721 to be more generic again. ...or determine how to handle all the unique version's outputs. |
Relevant telegraf.conf:
System info:
Steps to reproduce:
telegraf --config /etc/telegraf/telegraf.conf --config-directory /etc/telegraf/telegraf.d --input-filter ceph --test | grep ceph_usage
$ ceph df --format json
E.g.
Expected behavior:
ceph_usage
measurement is reported with the correct values from theceph df
output.Actual behavior:
All reported field values are 0
Additional info:
It looks like this is a consequence of #4721 . Perhaps that was only tested against Ceph Mimic (13.x).
That new code expects the
ceph df
json to have fieldstotal_space
,total_used
andtotal_avail
but in Ceph Luminous the fields have different names, e.g.Note that this also results in the field names changing. The current README for the ceph plugin also still shows the old output.
Oddly when this new code unmarshals the json above it doesn't error, i.e. this is not logged.
cc @spjmurray
The text was updated successfully, but these errors were encountered: