Observing Loki
All components of Loki expose the following metrics:
The Loki Distributors expose the following metrics:
Promtail exposes these metrics:
Most of these metrics are counters and should continuously increase during normal operations:
- Promtail reads the new line and increases its counters.
- The Loki distributor forwards the log line to a Loki ingester, where therequest duration counter should increase.
An example Grafana dashboard was built by the community and is available asdashboard 10004.
The Loki repository has a that includes aset of dashboards, recording rules, and alerts. Together, the mixin gives you acomprehensive package for monitoring Loki in production.