Skip to content
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

Some Ceph cluster stats not reported for Hammer #5523

Closed
moorglade opened this issue Mar 4, 2019 · 3 comments
Closed

Some Ceph cluster stats not reported for Hammer #5523

moorglade opened this issue Mar 4, 2019 · 3 comments
Labels
bug unexpected problem or unintended behavior
Milestone

Comments

@moorglade
Copy link

moorglade commented Mar 4, 2019

Relevant telegraf.conf:

[[inputs.ceph]]
  ceph_user = "client.admin"
  ceph_config = "/etc/ceph/ceph.conf"
  gather_admin_socket_stats = false
  gather_cluster_stats = true

System info:

Telegraf 1.9.5 (executed in a Docker container)
Ceph 0.94.5 (Hammer)
CentOS 7.5.1804

Steps to reproduce:

  1. Add Ceph input with gather_cluster_stats = true to Telegraf configuration.

Expected behavior:

All cluster stats described in the README are reported.

Actual behavior:

Some cluster stats are not reported at all, i.e.:

  • ceph_usage.total_bytes
  • ceph_usage.total_used_bytes
  • ceph_usage.total_avail_bytes
  • ceph_pool_usage.max_avail

(There may be more, I haven't checked all the metrics.)

Additional info:

  1. Everything works fine with Telegraf 1.8.3.

  2. This issue seem to be related to ceph input plugin cluster metrics broken on Luminous #5277, but instead of zeroes, I don't get any values at all.

  3. Output returned by ceph df seems to be partially consistent with what I can see in the tests, i.e.

    $ ceph --conf /etc/ceph/ceph.conf --format json-pretty df
    {
        "stats": {
            "total_bytes": 56719207284736,
            "total_used_bytes": 26185807761408,
            "total_avail_bytes": 30533399523328
        },
        "pools": [
            {
                "name": "rbd",
                "id": 0,
                "stats": {
                    "kb_used": 1172409821,
                    "bytes_used": 1200547656115,
                    "max_avail": 13376747995136,
                    "objects": 294000
                }
            },
    ...
    
@glinton glinton added area/ceph bug unexpected problem or unintended behavior labels Mar 4, 2019
@glinton glinton added this to the 1.10.0 milestone Mar 4, 2019
@moorglade
Copy link
Author

May I ask which release is this fix planned for? I see it's been marked for milestone 1.10.0, but I still don't see it in the 1.10.1 release.

@danielnelson
Copy link
Contributor

It looks like I forgot to include it into the release branch, I will put it in for 1.10.2.

@danielnelson danielnelson modified the milestones: 1.10.0, 1.10.2 Mar 20, 2019
@moorglade
Copy link
Author

Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug unexpected problem or unintended behavior
Projects
None yet
Development

No branches or pull requests

3 participants