cuddly-kite-65599
10/10/2025, 1:35 AMtall-airline-16756
10/10/2025, 1:35 AMtall-airline-16756
10/10/2025, 1:35 AMcuddly-kite-65599
10/10/2025, 1:35 AMtall-airline-16756
10/10/2025, 1:36 AMcuddly-kite-65599
10/10/2025, 1:37 AMtall-airline-16756
10/10/2025, 1:37 AMAWS_ACCESS_KEY_ID=your_access_key_id
AWS_SECRET_ACCESS_KEY=your_secret_access_key
AWS_REGION=us-west-2 # Optional, defaults to us-west-2
2. Connect Grafana to CloudWatch:
After your logs start flowing into CloudWatch, you can connect Grafana to it as a data source. This will help you create dashboards and easily visualize your LiveKit agent logs.
If you'd like, I’m more than happy to walk you through the detailed steps for setting up the CloudWatch data source in Grafana or assist with any part of this process. Just let me know!cuddly-kite-65599
10/10/2025, 1:37 AMtall-airline-16756
10/10/2025, 1:37 AMcuddly-kite-65599
10/10/2025, 1:38 AMtall-airline-16756
10/10/2025, 1:38 AMcuddly-kite-65599
10/10/2025, 1:42 AMtall-airline-16756
10/10/2025, 1:43 AM# Using Docker
docker run -d --name=loki -p 3100:3100 grafana/loki:latest
If you prefer Kubernetes, the official Helm chart is a great option: Loki Helm Chart.
2. Install Promtail:
Promtail is what collects your logs and sends them to Loki. You’ll want to configure it to read logs from your LiveKit agent containers or log files:
# Example Promtail config snippet
server:
http_listen_port: 9080
positions:
filename: /tmp/positions.yaml
clients:
- url: <LOKI_API_URL>/loki/api/v1/push
scrape_configs:
- job_name: livekit_logs
static_configs:
- targets:
- localhost
labels:
job: livekit
__path__: /path/to/your/logs/*.log
Just remember to replace /path/to/your/logs/*.log with the actual path to your LiveKit agent logs, and set <LOKI_API_URL> to your Loki server’s URL.
3. Install Grafana:
Next, install Grafana and set up Loki as a data source:
# Using Docker
docker run -d --name=grafana -p 3000:3000 grafana/grafana:latest
Once Grafana is up, head over to Configuration > Data Sources, add Loki, and enter the URL (like <LOKI_API_URL>).
4. Create Dashboards:
Finally, use Grafana to build dashboards and queries to visualize your logs. For instance, you can try the query:
`{job="livekit"}`to filter logs coming specifically from your LiveKit agents.
If you run into any questions or want me to walk you through a particular step, just let me know—I’m here to help!