Traefik Via Loki
Loki version 2 showcase using JSON Traefik access logs.
模仿官方Loki v2 Web Analytics Dashboard做了个Traefik的版本
使用说明
1. 修改Traefik日志格式
traefik.yaml
# format: json
accessLog:
format: json
2. 下载并导入模版 “Traefik Via Loki”
3. 修改LogQL语句
{job="/var/log/traefik.log"} 替换成自己的label
关注『云原生小白』公众号回复「入群」,加入Loki学习群,一起搬砖…
Data source config
Collector config:
Upload an updated version of an exported dashboard.json file from Grafana
Revision | Description | Created | |
---|---|---|---|
Download |
Grafana Loki (self-hosted)
Easily monitor Grafana Loki (self-hosted), a horizontally scalable, highly available, multi-tenant log aggregation system inspired by Prometheus, with Grafana Cloud's out-of-the-box monitoring solution.
Learn more