configure Loki for local development (#26997)
* configure Loki for local development Extend our docker compose setup to include Loki (along with promtail), scraping `logs/*.log` to ingest development logs as well as all logs from running containers. While we're in here, teach Prometheus to scrape metrics from Docker containers too. * tweak promtail labels * document extra services in config.mk * update home.json
Этот коммит содержится в:
коммит произвёл
GitHub
родитель
65325a767c
Коммит
617053e206
@@ -81,6 +81,20 @@ services:
|
||||
extends:
|
||||
file: build/docker-compose.common.yml
|
||||
service: grafana
|
||||
loki:
|
||||
container_name: mattermost-loki
|
||||
ports:
|
||||
- "3100:3100"
|
||||
extends:
|
||||
file: build/docker-compose.common.yml
|
||||
service: loki
|
||||
promtail:
|
||||
container_name: mattermost-promtail
|
||||
ports:
|
||||
- "3180:3180"
|
||||
extends:
|
||||
file: build/docker-compose.common.yml
|
||||
service: promtail
|
||||
|
||||
start_dependencies:
|
||||
image: mattermost/mattermost-wait-for-dep:latest
|
||||
@@ -95,7 +109,9 @@ services:
|
||||
- elasticsearch
|
||||
- prometheus
|
||||
- grafana
|
||||
command: postgres:5432 mysql:3306 minio:9000 inbucket:9001 openldap:389 elasticsearch:9200 prometheus:9090 grafana:3000
|
||||
- loki
|
||||
- promtail
|
||||
command: postgres:5432 mysql:3306 minio:9000 inbucket:9001 openldap:389 elasticsearch:9200 prometheus:9090 grafana:3000 loki:3100 promtail:3180
|
||||
|
||||
leader:
|
||||
build:
|
||||
|
||||
Ссылка в новой задаче
Block a user