Regex isn't working with Influxdb variable for creating key value pairs

What happened:

I referred below documentation for creating key value pairs in Grafana variable with Influxdb but unable to achieve it.

With Prometheus it is working as expected but not with Influxdb.

image

Regex Used: /device_name="(?<text>[^"]+)|agent_host="(?<value>[^"]+)/g

What you expected to happen:

It should display the output as below

Display Name => device_name
Value => agent_host

Note:Both device_name and agent_host are Tags here.

How to reproduce it (as minimally and precisely as possible):

Anything else we need to know?:

Environment:

  • Grafana version: 9.3.1
  • Data source type & version: influxdb:2.4.0
  • OS Grafana is installed on: Ubuntu 22
  • User OS & Browser: Windows - firefox
  • Grafana plugins:
  • Others:

@daniellee Can you help here?

1 Like

Can anybody please help here?

1 Like