Prometheus | Grafana Labs
grafana.com › latest › datasourcesThe URL of your Prometheus server, for example, http://prometheus.example.org:9090. Access. Server (default) = URL needs to be accessible from the Grafana backend/server, Browser = URL needs to be accessible from the browser. Note: Browser (direct) access is deprecated and will be removed in a future release.
Queries | Grafana Labs
https://grafana.com/docs/grafana/latest/panels/queriesGrafana automatically calculates an appropriate interval and it can be used as a variable in templated queries. The variable is either in seconds: $__interval or in milliseconds: $__interval_ms. It is typically used in aggregation functions like sum or average. For example, a Prometheus query using the interval variable: rate (http_requests ...
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: