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

NoneType error when percpu_usage stats are null #33

Open
sjahl opened this issue Aug 8, 2016 · 0 comments
Open

NoneType error when percpu_usage stats are null #33

sjahl opened this issue Aug 8, 2016 · 0 comments

Comments

@sjahl
Copy link

sjahl commented Aug 8, 2016

Hi, I've found that the percpu_usage stats can sometimes be Null, similar to #29.

Commenting out the CpuStats class (and removing it from CLASSES) fixes the issue (though, obviously, I no longer get CPU stats from containers). When I query the stats API directly, I'm seeing null in the percpu_usage:

    "cpu_stats": {
        "cpu_usage": {
            "total_usage": 0,
            "percpu_usage": null,
            "usage_in_kernelmode": 0,
            "usage_in_usermode": 0
        },

Which I think is resulting in the NoneType errors that I'm seeing. I'm not much of a Python programmer... but I'm willing to try and help fix this if someone can point me at the line in the CPUStats class that needs fixing :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant