Adding dynamic external hyperlink to a button click in text panel

I am using Grafana v11.5.2 in On-prem setup with OpenSearch DB as data source. We have created a dashboard in Grafana for viewing Jmeter test results. We have a variable named “index” which is fetched from OpenSearch DB. Each index corresponds to one unique product.
There is a Product Name dropdown in our dashboard to chose the Product, when a specific product is chosen from the dropdown , all metrics and panel values in the dashboard dynamically update based on the index/product from OpenSearch DB. Now I wanted to add a external link named “Active Defects” in a new panel in the dashboard. Requirement is that whenever we chose a product from the Product Name dropdown, the external hyperlink should be updated dynamically for that respective product like other values in dashboard.

How can we achieve this , I have tried Text panel , but all different links for each Product are separately displayed and not one.

That can be accomplished by using Data Links and accessing the URL via __fields

Thanks @yosiasz , you mean data links in Text panel ? Could you please provide more detailed steps how to do , as I am new to Grafana.

1 Like

so would each link be for each Active Defect or for each product detail? what would the url for each product look like?

@yosiasz : Separate link will be for each product , “Active Defects” will be the visible text but when we hover over it or click it then that respective Product link will display or open in a new tab based on the Product chosen from dropdown.

what if there are 50 defects for that Product, 50 identical urls for the same product?

This is using the Text plugin

see link at bottom of page

This is using Data Link

As you can see productid is one of the choices even if that value is hidden. So I used
${__data.fields["productid"]} and now on each column in the Table visualization, they all point to url:productid

No there will only be one unique link for each Product, infact those links are defect dashboard links for that product , not individual defect link.
And entire link will change , we can’t parameterize some text from it and it will work.