Quantcast
Channel: InfluxDB - Grafana Labs Community Forums
Viewing all articles
Browse latest Browse all 206

How to get an alert for Proxmox CPU usage

$
0
0

First, I am new to Grafana so be patient. I have reviews many documents as well as videos but they seem to be using early versions of Grafana - mine is 10.3.1. That being said, I am trying to get an alert when my Proxmox VE goes over 20% for example.

image

The alert query I am using is:
from(bucket: “proxmoxve1”)
|> range(start: v.timeRangeStart, stop:v.timeRangeStop)
|> filter(fn: (r) =>
r._measurement == “cpustat” and
r._field == “cpu”
)
|> filter(fn: (r) => r[“host”] == “pve”)
|> aggregateWindow(every: v.windowPeriod, fn: mean)

Expression B is:
image

Expression C is:
image

Expression D is:
image

Output is:
image

I have changed to values many times and can’t seem to get the results I need.

10 posts - 3 participants

Read full topic


Viewing all articles
Browse latest Browse all 206

Trending Articles