Difference between revisions of "LogQL"
Jump to navigation
Jump to search
Line 4: | Line 4: | ||
[[logcli]] | [[logcli]] | ||
+ | |||
+ | |||
+ | Get top 10 applications by highest log throughput: | ||
+ | topk(10,sum(rate({region=”us-east1"}[5m]) by (name)) | ||
+ | Get the count of logs during the last 5 minutes by level: | ||
+ | sum(count_over_time({job=”mysql”}[5m])) by (level) | ||
+ | Get the rate of HTTP GET requests from nginx logs: | ||
+ | avg(rate(({job=”nginx”} |= “GET”)[10s])) by (region) | ||
Latest revision as of 17:40, 23 November 2020
This article is a Draft. Help us to complete it.
logcli
Get top 10 applications by highest log throughput:
topk(10,sum(rate({region=”us-east1"}[5m]) by (name))
Get the count of logs during the last 5 minutes by level:
sum(count_over_time({job=”mysql”}[5m])) by (level)
Get the rate of HTTP GET requests from nginx logs:
avg(rate(({job=”nginx”} |= “GET”)[10s])) by (region)
See also[edit]
- Loki, changelog, 3100, promtail, Loki receiver, loki --help
ack, ag, grep
,egrep, fgrep
,agrep
,ngrep
,pgrep
,awk
,sed
,strings
,tr
,tail
,mtail
,git grep
,wc
,uniq
,LogQL
,findstr (Windows)
,rg, git-grep, cut
- Grafana, Grafana datasources, Grafana Alerting, Grafana installation, Grafana Labs, Grafana Changelog,
Grafana logs
,docker-compose.yml (Grafana)
, Grafana Loki, Grafana Tanka, StatsD and Graphite,grafana-cli
, Loki, LogQL, Grafana Enterprise, Grafana Cloud, Grafana alerts, Amazon Grafana, Grafana OnCall, Grafana Tempo, Grafana Mimir, Grafana agent, plugins, Terraform, Grafana dashboards,/etc/grafana/grafana.ini
, Grafana Pyroscope
Advertising: