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

NAS-133683 / 25.04-RC.1 / Refactor CPU reporting (by Qubad786) #15493

Open
wants to merge 1 commit into
base: stable/fangtooth
Choose a base branch
from

Conversation

bugclerk
Copy link
Contributor

Context

It was requested that we make some refactoring changes to our CPU reporting. Following points have been catered to:

  1. /proc/stat has been disabled
  2. CPU stats like user/nice etc are not being saved/retrieved
  3. We were calculating the usage incorrectly which has been addressed
  4. Data structure of CPU stats has been changed in realtime reporting

Example payload of what we send in realtime reporting for CPU metrics

    "cpu": {
      "cpu": {
        "usage": 33,
        "temp": null
      },
      "cpu0": {
        "usage": 100,
        "temp": null
      },
      "cpu1": {
        "usage": 1,
        "temp": null
      },
      "cpu2": {
        "usage": 0,
        "temp": null
      }
    },

Original PR: #15445
Jira URL: https://ixsystems.atlassian.net/browse/NAS-133683

(cherry picked from commit 9479e43)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants