V
V
VITYA-XY12020-04-18 11:59:53
Amazon Web Services
VITYA-XY1, 2020-04-18 11:59:53

Is it possible to put a variable in the Alias ​​(legend) field on a graph in Grafana?

Modifying dashboard EC2 (617) for personal needs (source CloudWatch).
Created and named a variable:
Name: PrivateDnsName
Querya:

ec2_instance_attribute ($region, PrivateDnsName, {"instance-id": ["$instanceid"]})


Question: is it possible to display this variable on the chart as a legend and how can this be done?
Placed a variable in the Alias ​​field in the form {{$PrivateDnsName}}. But that doesn't work.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
D
de1m, 2020-04-18
@de1m

Taco works for me, that is, just without parentheses
p:{{pod}}, c:{{container_name}}, $namespace

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question