A regex in query in Grafana - Stack Overflow
stackoverflow.com › questions › 64892916But, you can use the regex field inside Grafana. This will work for any datasource. Here I'm using Prometheus, but again the actual query and datasource does not matter. So for example, say I have a query returning container IDs: And I only wanted the container IDs that ended with the letter "b". I could enter the /b$/ regex to match results ...
Variable examples | Grafana Labs
grafana.com › latest › variablesVariable examples. This page contains links to dashboards in Grafana Play with examples of template variables. Elasticsearch Metrics - Uses ad hoc filters, global variables, and a custom variable. Graphite Templated Nested - Uses query variables, chained query variables, an interval variable, and a repeated panel.
regex | Grafana Labs
grafana.com › latest › clientsregex stage. The regex stage is a parsing stage that parses a log line using a regular expression. Named capture groups in the regex support adding data into the extracted map. Schema regex: # The RE2 regular expression. Each capture group must be named. expression: <string> # Name from extracted data to parse. If empty, uses the log message.