I am using OpenTelemetry Collector and exposing host metrics to victoriametrics and then retrieved from Grafana.
What I want to do is create an alert rule to trigger when CPU utilization on the monitored server reaches above 80%, and if this happens, I want to print the top 5 processes by CPU usage.
Problem is that I have two queries with two different metrics: process_cpu_utilization_ratio which contains CPU utilization per process per server, and system_cpu_utilization_ratio which contains CPU utilization per server.
If I am using system_cpu_utilization_ratio for threshold to trigger the alert for affected server, how do I use the other query (process_cpu_utilization_ratio) to print the top 5 processes per CPU utilization for the same affected server in alert annotation summary/description?