I’ve been banging my head against a wall for a few days. Any help would be appreciated.
- What Grafana version and what operating system are you using?
- v7.3.4 and debian afaik.
- What are you trying to achieve?
Panels that are AWS based render resources of a certain tag group.
For example. If we have an AWS SQS panel. I could pass in “prod” tag and it’d change what’s being rendered in the panel and only render queues that have “prod” as an AWS tag.
- How are you trying to achieve it?
- Attempt (Failed) : Regex and variable
I created a variable for the dashboard with
resource_arns($selected_region,sqs,{"service_name":["$service"]}), (where service is my tag)
^(?:[^:]*\:){5}([^:]*.)
This would take
arn:aws:sqs:us-west-2:333333333333:my_queue_hello
And convert it to
my_queue_hello
Then I was planing on doing in each panel’s dimensions = QueueName = * AND resource_name IN VAR.
But the above doesn’t really work since you can’t do an IN comparison in the dimensions as far as I can tell.
- Did you follow any online instructions? If so, what is the URL?
- The basic configuring variables grafana docs.