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

improve mkr status -v to show host metrics #517

Merged
merged 2 commits into from
Dec 27, 2022
Merged

improve mkr status -v to show host metrics #517

merged 2 commits into from
Dec 27, 2022

Conversation

kmuto
Copy link
Member

@kmuto kmuto commented Dec 26, 2022

This patch adds to mkr the ability to output a list of host-metrics that the host has.
The output of the metric list will only work with mkr status -v (verbose mode), so there will be no performance impact in general use.

$ mkr status 4Hkc5RWzUQG
{
    "id": "4Hkc5RWzUQG",
  ...
    "ipAddresses": {
 ...
    }
}

$ mkr status -v 4Hkc5RWzUQG
{
    "id": "4Hkc5RWzUQG",
  ...
    "interfaces": [
 ...
    ],
    "metrics": [
        "cpu.guest.percentage",
 ...
        "memory.used"
    ]
}

@kmuto kmuto merged commit e39e99f into master Dec 27, 2022
@kmuto kmuto deleted the show-host-metrics branch December 27, 2022 04:40
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

Successfully merging this pull request may close these issues.

None yet

2 participants