Configuring a data link in a Graph Time Series Panel

Hi,
I need assistance configuring a data link in a Graph Time Series Visualization Panel using Elasticsearch as the datasource. Here is the setup I am working with:

  • Group By Fields: Unique.Id and Itr.Id
  • Query Fields: Unique.Id and Itr.Id
  • Value Fields: Unique.Id=123 and Itr.Id=321
  • Data Link Example: https://www.test.com/id=123/itr_id=321

I referred to this documentation: Grafana Docs on Data Links.

The documentation mentions using __field.labels.<LABEL> to insert a label’s value into the URL. If the label contains dots, the syntax should be __field.labels["<LABEL>"].

However, my attempt with this format is not showing the transformed URL correctly:

https://www.test.com/id=${__field.labels["Unique.Id"]}/itr_id=${__field.labels["Itr.Id"]}

Can you help identify what might be going wrong? Thank you!

Hi,
Could someone help identify what might be missing in the above request? Thank you!

what do you see at the bottom of your browser when you hover over the link

its a blank link about:blank

what do you see when start typing $ in the URL field of Add Link

when start typing $ in the URL field of Add Link, I don’t see Fields as show above, I see Templates and Built-in.

What version of grafana? Also please share sample es data as json

using grafana v11.3.0. elastic v7.10.2.