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

Add "nomad.client.host.cpu.total_ticks" to metrics #17578

Closed
wants to merge 1 commit into from

Conversation

TrueBrain
Copy link
Contributor

@TrueBrain TrueBrain commented Jun 17, 2023

Currently there is nomad.client.allocs.cpu.total_ticks and nomad.client.allocs.cpu.total_percent for allocations, but nomad.client.host.cpu.total only has that, which is a percentage.

To keep things more the same, this PR adds total_ticks and total_percent for nomad.client.host.cpu too. This means that all cpu objects have at least system, user, total_percent and total_ticks.

I also kept nomad.client.host.cpu.total, as I am sure there are people using this field; and removing it would break their work. Which seems like a bad idea. One could argue that total_percent doesn't need to be added, but this makes it a bit unclear what total actually is.

PS: honestly not sure this PR is worth it; my OCD triggered, that was the whole reason I have to admit :)

@tgross
Copy link
Member

tgross commented Jun 20, 2023

@TrueBrain I'm going to close this PR in lieu of keeping this work together with what you submitted in #17579 (which I'm reviewing now). I do appreciate that you tried to break it up into reviewable chunks! But I think these two PRs belong together and I want to address them as one.

@tgross tgross closed this Jun 20, 2023
@TrueBrain TrueBrain deleted the host-cpu-total-ticks branch June 20, 2023 19:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Development

Successfully merging this pull request may close these issues.

2 participants