リクエスト時にログを変換し、Lokiで通知をカスタマイズします。
Loki 1.0, (, Grofers Paytm Insider), Grafana, . , . 1.6.0 , , , .
Loki . , Loki, . , Loki, , .
, Loki, Loki 2.0. , , .
: , , . !
!
2.0!
. |=
!=
|~
!~
, rate
count_over_time
Loki 1.x. , — 2.0, , , , !
: . , :
, :
, :
...
= logfmt !
logfmt? !
:
JSON:
. JSON , . responce
. JSON, , .
, . , .
Loki 2.0 . , , . , , duration 1 query_type=filter
:
«» Loki , duration Golang.
. - , Loki __error__
. :
— JSON, JSON json
. , , :
, , . Loki 2.0 , , :
:
label_format
line_format
Golang, . , , .
, , , . . unwrap
, , :
sum_over_time
avg_over_time
stddev_over_time
stdvar_over_time
max_over_time
min_over_time
quantile_over_time
, 99 request_time NGINX, :
IP:
:
: duration(duration)
. Loki duration
Golang ( , s
ms
). , kb
, mb
.
, , 2.0: Loki Prometheus Alertmanager.
Loki Prometheus, Grafana . Loki 2.0 , Prometheus. Prometheus Alertmanager, . !
Loki 2.0 — "" boltdb-shipper
!
Loki 1.5 boltdb-shipper. Loki , (DynamoDB, Bigtable, Cassandra ), , , ! 2.0 . Grafana Labs .
Loki, ? 30 Grafana Cloud! Loki, Grafana Alertmanager , !
: Loki « Kubernetes». .