Manipulating ${__series.name} variable

Hi there,

I have a data link configured doing a drill-down on a value in a Graph Panel.
Basically it opens another link with the ${__series.name} e.g.

Drill-down → https://www.test.com/ip=${__series.name}

However, my query for the series is grouped by two different fields (ip and ASN) - so in my panel it will show e.g. “1.1.1.1 12345” (ip + ASN)
But when using the ${__series.name} I only want to add the ip part and not the ASN part… So I am looking for a way of splitting ${__series.name} into an array or something.

Possible?

Anyone?
Many thanks in advance

My version is grafana 7.5
We can use filed variables

In your datalink , you can use ${__filed.labels.ip}

Hmm… I am not seeing this.

Screenshot 2023-03-02 at 15.39.05

And I am not running Grafana 8.5.20

Are you solve this issue?

Nope. The suggested solution is not working for me

They spelled it wrong, try ${__field.labels.ip}
it worked for me. See documentation here: Configure data links | Grafana documentation