How to query grafana with influxdb so see values which include specific string text

  • What Grafana version and what operating system are you using?
    Grafana 7 and influxdb 1.8 on linux Rhel server

  • What are you trying to achieve?
    How to query in to Grafana with Influxdb so see values which include specific string text

  • How are you trying to achieve it?
    I have tried following and similar query commands:

SHOW TAG VALUES WITH KEY = "name" WHERE "name" = /[ir]/

Idea is I want to get all results which contain string

  • What happened?
    Cant achieve wanted result

  • What did you expect to happen?
    I expect to receive back all the URL’s in other words endpoints that contain string

Welcome

What if you tried

=~ /*ir*/

Not sure if you are looking in the beginning or end or in the middle anything containing ir

Hey @yosiasz !

Thanks for response, but unfortunately that does not return only urls with , still returns all results.

is full word in endpoint, in example:

web.com/dostuff/ir/getdata

so if url contains "ir"i would like to see only those, however some contain ‘ri’ and those are returned as well :confused:

In that case how about

=~ /\/ir\//

Thanks a lot!
This helped :slight_smile: !

1 Like