Skip to content

node_cpu_seconds_total reports incorrect cpu utilisation #581

@vosdev

Description

@vosdev

Aleksandr requested I create an issue on the LXD discuss (https://discuss.linuxcontainers.org/t/lxd-5-10-has-been-released/16143/9)

This morning my LXD snap updated from 5.9 to 5.10. Few minutes after the upgrade, my prometheus instance was firing my alert on all LXC instances, stating they are using 85-99% CPU:

100 - (avg by (instance) (irate(node_cpu_seconds_total{job="node-exporter",mode="idle"}[5m])) * 100) > 75

image

I have node_exporter running inside the LXC's, it is version 1.2.2.

My LXD snap is tracking latest/stable. This morning at 03:20 AM prometheus reported the high CPU usage on all my LXC instances. Their actual CPU usage is all below 5%.

minecraft1 ❯ w
 21:33:43 up  1:14,  1 user,  load average: 3.78, 3.08, 2.98
root @ nginx1 # w
21:33:41 up  1:14,  1 user,  load average: 3.76, 3.06, 2.97

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions