Grafana Loki querying basics, log based metrics and setting alerts on logs

preview_player
Показать описание
In this video you will learn about
- how to do basic queries in Grafana Loki
- how to count the log lines and turn them to metrics
- and finally how to set alert on these metrics

00:00 What we gonna do
00:58 Stream selectors
03:20 Filtering log streams
04:55 Examining the logs dashboard
06:15 Applying functions on log queries: the rate function
06:50 Building a panel for alerting
07:30 Constructing the alert query
09:50 Setting an alert
10:30 Previewing alert thresholds
12:47 Summary
Рекомендации по теме
Комментарии
Автор

How to handle elastic search query in grafana when we have dynamic dashboard enabled

amoghbabukalapati
Автор

Thanks!
Can you please tell me where did you get this dashboard - 04:55 ?

ashishjohn
Автор

Thanks! I have been using ELK stack to capture logs and prepare dashboards. How is it different from ELK?

ArvindKumar-twnk
Автор

How Do I do Setup dashboard that show only event alert line war, info Debug in bard chat along with number of alert count.

riteshspn
Автор

Thanks! Very helpful. I have a question and hoping to get a response from you.
"Can these logs (the entire text) be sent as an alert to Slack/Email" ? The usecase that I'm looking for is that whenever there is a critical error in the logs, I'd like to receive an alert about 'what' the error is..? Is that possible?

nitishkohirkar
Автор

The expression you added is not available in latest grafana version can you please guide

sateeshkumar
Автор

Histogram is loading when we query for large duration like 30min or more.

udaydito
Автор

hey brother kindly reply for me to help. i coudnt get alert option in created dashboard with loki

IllthizamNazar
Автор

Loki user please be aware lables in loki is not equivalent to index in any other platform. Labels does not work with high cardinality dala, its good for repeating dtaa like service name. For exaple if you start putting transaction id in label ...loki will blast away...

LalitKumar-snjf
Автор

parse error at line 1, col 3: syntax error: unexpected IDENTIFIER, expecting = or =~ or !~ or != ?

carloscazelattojr