Skip to content

bug: Docker widget cpu calculation is container lifetime average instead of "current" #5544

@mikepelley

Description

@mikepelley

Describe the bug

The docker containers widget reports each container's lifetime-average CPU usage instead of its current CPU usage. The widget claims "updated a minute ago" — which is true of the sample time, but the value sampled is cumulative, not instantaneous.

I believe this was working correctly before PR #4266. That broke cpu stats and PR #4311 changed it to lifetime CPU rather than instantaneous.

Steps to reproduce

Start a container and create a high CPU load. Stop the load and watch the widget. The CPU usage will stay high.

Impact

Makes the CPU usage in the docker container less useful.

Additional information

No response

Version

1.59.2

Installation method

Docker Compose

Browser

Chrome

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions