Promtail、Loki、Grafana、Prometheus

2021-11-02  本文已影响0人  michael_jia

Loki: like Prometheus, but for logs.

A Loki-based logging stack consists of 3 components:

Loki Explorer

Log browser: {filename="/data/promtail/logs/authservice-ms.log"} |= "MF0A171130770809F5"

Promtail

Promtail is an agent which ships the contents of local logs to a private Grafana Loki instance or Grafana Cloud. It is usually deployed to every machine that has applications needed to be monitored.
It primarily:
• Discovers targets
• Attaches labels to log streams
• Pushes them to the Loki instance.

Prometheus

Rules

Portainer

Loki

Loki is a horizontally-scalable, highly-available, multi-tenant log aggregation system inspired by Prometheus.

LogQL is Loki’s PromQL-inspired query language. Queries act as if they are a distributed grep to aggregate log sources. LogQL uses labels and operators for filtering.

上一篇下一篇

猜你喜欢

热点阅读