Grafana Loki Integration 🔥
Overview
Integration Methods
Method 1: Using logcli
Install logcli
Configure logcli
Query and Tail with Gonzo
Common LogQL Queries
Method 2: Live Tail API
Set Up Custom Format
Live Tail API Connection
Using a Shell Function
Loki Log Format
Kubernetes + Loki Workflow
1. Query Kubernetes Logs in Loki
2. Compare with kubectl
3. Integration with Stern
Advanced Use Cases
Pipeline Validation
Pattern Detection
AI Analysis
Time-Range Analysis
Configuration Examples
Persistent Configuration
Shell Aliases
Troubleshooting
logcli Not Connecting
No Logs Appearing in Gonzo
Authentication Issues
Performance Issues
Best Practices
1. Use Specific Label Selectors
2. Combine with Filters
3. Leverage Gonzo's Features
4. Save Common Queries
Complete Tutorial
Related Resources
Documentation
External Links
Blog Posts
Support
Last updated