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:
41
files/promtail/promtail-config.yaml
Normal file
41
files/promtail/promtail-config.yaml
Normal 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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user