I have metrics in Cloudwatch for around 200 devices, that use the following pattern:
device.dev.cpu.827192
device.dev.cpu.742124
device.dev.cpu.494271
device.dev.cpu.321692
What I want to do in my dashboard is to have one query, that looks like this: “device.dev.cpu*”
that will retrieve all metrics which follow the specified pattern.
Wildcards work perfectly fine in the AWS Cloudwatch console, but when I try to do the same in Grafana, I don’t receive any data. Also the query inspector does not display anything, so I cannot debug it or see if there is an error with the query itself.
If you guys have idea if this is even supported in the Cloudwatch plugin for Grafana, I would be happy to know.
I’m also looking to solve this problem. I thought maybe it could be done by using variables but then when using variables you can not set up alerts. (https://github.com/grafana/grafana/issues/6557)
However, if you don’t need alerts, variables might be a good solution for you.