Queries | Grafana Labs
grafana.com › docs › grafanaQueries. Queries are how Grafana panels communicate with data sources to get data for the visualization. A query is a question written in the query language used by the data source. Grafana asks, “Hey data source, would you send me this data, organized this way?” If the query is properly formed, then the data source responds.
Query examples | Grafana Labs
grafana.com › docs › lokiQuery examples. Some useful query examples here. Log Query examples Examples that filter on IP address. Return log lines that are not within a range of IPv4 addresses: {job_name="myapp"} != ip("192.168.4.5-192.168.4.20") This example matches log lines with all IPv4 subnet values 192.168.4.5/16 except IP address 192.168.4.2:
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 ...