I have two panels. I want to create an interlink between them. In the first panel, I have results that include a count. When I click on a result in the first panel, I want the second panel to be filtered based on that selection. How can I do this?
Example: As shown in the screenshot, the first panel has two columns: topic
and count
. The second panel also has two columns: error
and payload
. Currently, the second panel is not filtered. I want to filter the results in the second panel based on the first panel. When I click on a topic in the first panel, the second panel should display results only for the selected topic.
Hello @chethan4046 for my suggestion you can use grafana dashboard variables and data links.
1 Like
Thanks for replay.
i am basically looking for dynamic solution. I ment in screen shot which i have shared might have 4 topic. but it can be many it based time range selection. And i have checked in variable not able to create variable based on logs message from Cloudwatch logs
Make it a hidden free-text variable then. Make it filled by the url generated from the data on your first panel..
Can you help me with docs
I don’t quite understand the problem.
In the first panel, you call up a link via the corresponding line, which loads the same dashboard again. It does this with the filters that you retrieve from the line you called up.
You need a variable for Topic. And you incorporate these into the query for “Payload and validation Logs”.
I would also transfer the set time period one more time. (…&from=${__from}&to=${__to})
I have three topics with corresponding counts displayed in Panel 1.
In Panel 2, I show errors and payload data, which also include a key or field named “topic”.
What I want is: when I click on any topic or its count in Panel 1, Panel 2 should automatically filter to show only the errors and payloads related to the selected topic.
Then the link on the topic line should look something like this…
d/${__dashboard.uid}/${__dashboard.name}?orgId=1&$var-topic=
${__value.raw}&from=${__from}&to=${__to}
or
d/${__dashboard.uid}/${__dashboard.name}?orgId=1
&${topic:queryparam}&from=${__from}&to=${__to}
@joachimschiewek @infofcc3
I have done. Click is working fine now. However, a hard refresh is needed to update the value in the panel. Just click it refresh, but the value is not updated when I do Ctrl + 5, then it works
Grafana panels not updating until a hard refresh (Ctrl + F5) typically indicates a caching issue, data source response issue, or panel-level configuration problem.
check these settings…
grafana refresh feature work fine.