Include a substring from a series name in a data link

I’m sending per-host metrics into Graphite from collectd. The metric names look like this:

host.graphite-01.df.root.percent_bytes.used

I have a dashboard with a bar gauge panel showing which disks are closest to being full:

highestCurrent(sortByTotal(aliasByNode(host.*.df.*.percent_bytes.used, 1, 3)), 10)

I’d like to add a data link to another dashboard showing details about the host:

https://grafana.example.com/d/aaaaaaaaa/system-details?var-host=graphite-01

Is there a way to extract the host name graphite-01 from the series name to include in the data link?

  • What Grafana version and what operating system are you using?

v8.0.3 on Debian 10