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

[question] Can not see node_cpu_utilisation metric #1454

Closed
jinleileiking opened this issue Aug 22, 2019 · 3 comments
Closed

[question] Can not see node_cpu_utilisation metric #1454

jinleileiking opened this issue Aug 22, 2019 · 3 comments
Assignees

Comments

@jinleileiking
Copy link

jinleileiking commented Aug 22, 2019

Host operating system: output of uname -a

Linux t 3.10.0-862.11.6.el7.x86_64 #1 SMP Tue Aug 14 21:49:04 UTC 2018 x86_64 x86_64 x86_64 GNU/Linux

node_exporter version: output of node_exporter --version

node_exporter, version 0.18.1 (branch: master, revision: 7ef6f25)
build user: xxxxxxxxxx
build date: 20190820-06:23:27
go version: go1.12.6

node_exporter command line flags

Are you running node_exporter in Docker?

No

from mixin, there are USE dashboard using node_cpu_utilisation metric, but this version did not give it. WHY :(

@beorn7
Copy link
Member

beorn7 commented Aug 22, 2019

To be more precise: The dashboard uses instance:node_cpu_utilisation:rate1m rather than node_cpu_utilisation.

instance:node_cpu_utilisation:rate1m is a recording rule, not a metric coming directly from node_exporter. The rules file that defines that rule is also part of the node-mixin. If you just run make in github.com/prometheus/node_exporter/docs/node-mixin, you'll see a file node_rules.yaml generated. This file has to be used by your Prometheus server as a rules file, and then things will work.

@jinleileiking
Copy link
Author

Thanks. This needs a wiki

@discordianfish
Copy link
Member

Not sure if it needs a wiki but could get documented in the mixin docs dir.

beorn7 added a commit that referenced this issue Sep 6, 2019
Following @discordianfish's suggestion
[here](#1454 (comment)).

Signed-off-by: beorn7 <beorn@grafana.com>
SuperQ pushed a commit that referenced this issue Sep 8, 2019
Following @discordianfish's suggestion
[here](#1454 (comment)).

Signed-off-by: beorn7 <beorn@grafana.com>
oblitorum pushed a commit to shatteredsilicon/node_exporter that referenced this issue Apr 9, 2024
Following @discordianfish's suggestion
[here](prometheus#1454 (comment)).

Signed-off-by: beorn7 <beorn@grafana.com>
oblitorum pushed a commit to shatteredsilicon/node_exporter that referenced this issue Apr 9, 2024
Following @discordianfish's suggestion
[here](prometheus#1454 (comment)).

Signed-off-by: beorn7 <beorn@grafana.com>
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

No branches or pull requests

3 participants