mirror of
https://github.com/ClusterCockpit/cc-backend
synced 2025-07-24 21:26:08 +02:00
Include metric thresholds in rule environment
Not yet tested
This commit is contained in:
@@ -19,7 +19,7 @@
|
||||
},
|
||||
{
|
||||
"name": "load_perc",
|
||||
"expr": "cpu_load / load_threshold"
|
||||
"expr": "cpu_load.avg / load_threshold"
|
||||
}
|
||||
],
|
||||
"rule": "cpu_load > load_threshold",
|
||||
|
@@ -21,6 +21,6 @@
|
||||
"expr": "1.0 - (cpu_load / load_threshold)"
|
||||
}
|
||||
],
|
||||
"rule": "cpu_load < load_threshold",
|
||||
"rule": "cpu_load.avg < load_threshold",
|
||||
"hint": "This job was detected as lowload because the average cpu load {{.cpu_load}} falls below the threshold {{.load_threshold}}."
|
||||
}
|
||||
|
Reference in New Issue
Block a user