Hi,
Use case @yeongun1026 provided is not exactly related to limitations you’re referring to @melori.arellano .
Limitations are about alert groups while yeongun’s example uses single alert rule, but this is multi dimensional one.
I’m facing the same problem and let me elaborate how it looks like.
In my case data source is Google Cloud Monitoring.
I have dashboard containing graphs showing some VM Instances metrics (CPU, memory, etc.) Each graph is grouped by instance name. There are two variables for this dashboard:
project - as it’s used for a few GCP projects
host - as I want to filter graphs for specific instance from time to time.
I also created multi dimensional single alert rule for VM instances CPU usage.
This one is associated to “CPU usage of each VM Instance” graph shown above, using DashoardID and PanelID.
Now, assuming I have 10 VM instances I may receive one email with 1-10 notifications when alert is triggered.
And each of this notification will have the same rendered picture attached as it is not possible to pass VMs instance name to rendered graph as a variable. It doesn’t make sense.
Another thing. As I’ve mentioned above I’ve “project” variable in my dashboard for viewing VMs for a few projects. Having no option for passing project name to graph variable “project” when rendering I would need to create separate dashboards for each project. Same situation - It doesn’t make sense.
So how it should work for multi dimensional alert rules in my opinion ?
If images rendering is enabled and alert rule is correctly associated to dashboard/panel we should have additional configuration option determining values pairs saying which label in alert rule should be passed to which dashboard variable, for example in my case:
resource.label.project_id → $project
metadata.system_labels.name → $instance
What we’ll achieve this way ?
- Using the same dashboard/panel for many projects avoid multiplying them
- Each notification in single alert email having attached image showing CPU usage only for related VM instance
Additionally I would consider adding one more option for multi dimensional alert, let’s call it “Single image” to avoid rendering and attaching many pictures to one email.
How would it work in my use case ?
Regardless of VM instances number alerting high CPu usage I can show it on one picture (based on panel showing CPU usage for each VM instance) as in fact I don’t need to have separate pictures for each alerted VM instance.
In such case I would only to pass only one label to dashboard variable:
resource.label.project_id → $project
for selecting GCP project alert rule is related to and enable “Single image” option.
Summarizing: My understanding is currently image rendering functionality is useful only for single alerts (not multi dimensional) not grouped, but definitely is great one.
Just should be improved a little bit
Hoping someone will review this as Feature Request.
If it’s not a correct place for such a request please provide the correct one I can post it to.
Have a nice day !
Ged