1
0
mirror of https://github.com/coltoneshaw/CS-Repro-Mattermost.git synced 2025-12-23 10:01:30 +01:00

Add Promtail and Loki support for viewing Logs in Grafana (#20)

* add promtail loki support

* updated images and removed arch directives in docker-compose

* fix grafana logs

* add restart-grafana make command

* clean up enhanced logs dashboard

* update both mattermost servers to use the same version

* update docker-compose and promtail config to use host path mounts for logs

* clean up dashboard for good
This commit is contained in:
Sven Hüster
2025-05-09 21:35:07 +02:00
committed by GitHub
parent 7c2f073074
commit 87f24d2469
9 changed files with 996 additions and 30 deletions

View File

@@ -0,0 +1,41 @@
server:
http_listen_port: 9080
grpc_listen_port: 0
positions:
filename: /tmp/positions.yaml
clients:
- url: http://loki:3100/loki/api/v1/push
scrape_configs:
- job_name: mmlogs-1
static_configs:
- targets:
- localhost
labels:
job: mmlogs-1
__path__: /logs-node-1/*.log
- job_name: mmlogs-2
static_configs:
- targets:
- localhost
labels:
job: mmlogs-2
__path__: /logs-node-2/*.log
- job_name: mmlogs-local-1
static_configs:
- targets:
- localhost
labels:
job: mmlogs-local-1
__path__: /logs-local-1/*.log
- job_name: mmlogs-local-2
static_configs:
- targets:
- localhost
labels:
job: mmlogs-local-2
__path__: /logs-local-2/*.log