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

CPU alert works? #15

Open
fuminori-ido-m opened this issue Sep 24, 2019 · 1 comment
Open

CPU alert works? #15

fuminori-ido-m opened this issue Sep 24, 2019 · 1 comment

Comments

@fuminori-ido-m
Copy link

I have two questions.

Q1) README.md says

NodeCPUUsage > 50%

While prometheus-rules/cpu-usage.rules is as follows:

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

CPU Usage threshold could be 75% rather than 50%, right?

Q2) Label "name" doesn't work actually. In my environment, dashboard of node_cpu is as follows:

node_cpu{..., kubernetes_name="prometheus-node-exporter", ...} = 0.15...

So, alert rule label condtion should be as follows, right?:

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

@kayrus
Copy link
Owner

kayrus commented Oct 3, 2019

@fuminori-ido-m unfortunately I don't have time to work on this project, however you're free to create your own fork.

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

2 participants