Hi,
I would like to create alert on cpu usages (obtained by telegraf + influxdb) but I always get no data status when I test rule. What is wrong?
I always get something similar for test rule:
{
“firing”: false,
“state”: “no_data”,
“conditionEvals”: “false = false”,
“timeMs”: “1.774ms”,
“logs”: [
{
“message”: “Condition[0]: Query”,
“data”: {
“from”: 1583675165767,
“queries”: [
{
“refId”: “A”,
“model”: {
“alias”: “$tag_host: $col”,
“dsType”: “influxdb”,
“function”: “mean”,
“groupBy”: [
{
“interval”: “auto”,
“params”: [
“auto”
],
“type”: “time”
},
{
“key”: “host”,
“params”: [
“tag”
],
“type”: “tag”
}
],
“hide”: false,
“interval”: “1s”,
“measurement”: “cpu_percentageBusy”,
“orderByTime”: “ASC”,
“policy”: “default”,
“query”: “SELECT mean(usage_user) as "user", mean(usage_system) as "system", mean(usage_softirq) as "softirq", mean(usage_steal) as "steal", mean(usage_nice) as "nice", mean(usage_irq) as "irq", mean(usage_iowait) as "iowait", mean(usage_guest) as "guest", mean(usage_guest_nice) as "guest_nice" FROM "cpu" WHERE "host" =~ /$server$/ and cpu = ‘cpu-total’ AND $timeFilter GROUP BY time($interval), *”,
“rawQuery”: true,
“refId”: “B”,
“resultFormat”: “time_series”,
“select”: [
[
{
“params”: [
“value”
],
“type”: “field”
},
{
“params”: ,
“type”: “mean”
}
]
],
“tags”:
},
“datasource”: {
“id”: 1,
“name”: “InfluxDB”
},
“maxDataPoints”: 0,
“intervalMs”: 0
}
],
“to”: 1583678765767
}
},
{
“message”: “Condition[0]: Query Result”,
“data”: {
“series”:
}
},
{
“message”: “Condition: Eval: false, Query Returned No Series (reduced to null/no value)”,
“data”: null
}
]
}
I’m using Grafana v6.6.2 (3fa63cfc34)
thank you