![]() |
4 月之前 | |
---|---|---|
.. | ||
grafana-provisioning | 4 月之前 | |
loki | 10 月之前 | |
README.md | 8 月之前 | |
otel-collector-config.yaml | 8 月之前 |
Welcome to the Grafana Loki and OpenTelemetry integration project! This repository provides a simple and effective setup for log management and analysis using Docker, Grafana Loki, and OpenTelemetry. Currently this is an in-progress GSoC Summer of Code project and so the instructions may change before being finalized. Please treat all this as alpha code.
This project demonstrates how to configure and use Grafana Loki with OpenTelemetry to collect, parse, and visualize log data from Jitsi Meet components. It includes:
log-analyser.yml
) for Loki and OpenTelemetry Collector.grafana.yml
) for Grafana.Clone the repository:
git clone https://github.com/jitsi/docker-jitsi-meet.git
Update Jitsi Meet Docker Compose Configuration:
To enable log collection and analysis, you need to modify the docker-compose.yml
file for Jitsi Meet components. Add the following configuration to each Jitsi service within the docker-compose.yml
file:
logging:
driver: "json-file"
options:
labels: "service"
This configuration ensures that logs are collected in JSON format and tagged with service labels, which is essential for Loki to properly ingest and index the logs.
To start all necessary services, including Jitsi Meet components, Grafana, Loki, and OpenTelemetry, run:
```bash
docker-compose -f docker-compose.yml -f log-analyser.yml -f grafana.yml up -d
```
docker-compose.yml
, the log analysis tools from log-analyser.yml
, and Grafana from grafana.yml
. The logs from Jitsi Meet components will automatically be sent to Grafana through Loki.grafana.yml
alone. However, for the complete log analysis project, you need both log-analyser.yml
and grafana.yml
.Open your web browser and navigate to http://localhost:3000.
Log in to Grafana:
Use the default credentials:
```
Username: admin
Password: admin
```
The dashboards for Jitsi Meet components are pre-configured and will be automatically available in Grafana. You can explore these dashboards to view and analyze logs.
Thank you for exploring this project! For detailed documentation, follow the Jitsi Handbook, you can follow the Docker and Log-Analyser guides under Self-Hosting Guide > Deployment guide.
If you have any questions or need further assistance, please feel free to reach out.