Feature Request
Support pulling logs from Grafana Loki as log source
Is your feature request related to a problem? Please describe
Currently, HertzBeat's log integration module supports receiving logs via OTLP protocol, but lacks native integration with Grafana Loki as a log source. Many users have deployed Loki for log storage and want HertzBeat to be able to pull logs from Loki for unified monitoring and analysis.
Describe the solution you'd like
Add native Loki log source integration to enable HertzBeat to pull logs from Loki:
Describe alternatives you've considered
- Loki Log Pulling: Configure Loki datasource URL and query parameters
- LogQL Support: Support LogQL query language for filtering and querying logs
- Real-time Streaming: Implement real-time log streaming from Loki using Loki's tail API
- Label Filtering: Filter logs by Loki labels (app, env, namespace, etc.)
- Time Range Query: Support configurable time range for log queries
Additional context
Benefits:
- Unified Observability: Combine metrics from HertzBeat with logs from Loki
- Cost Effective: Leverage existing Loki deployment
- Powerful Queries: Use LogQL for precise log filtering
- Grafana Ecosystem: Integrate with existing Grafana/Loki dashboards
Technical References:
Implementation Suggestions:
- Add Loki client library dependency (e.g.,
com.grafana:loki-client)
- Create
LokiLogSource class implementing the log source interface
- Implement LogQL query parser and executor
- Add periodic polling or WebSocket streaming support
- Convert Loki log entries to HertzBeat's internal log format
Feature Request
Support pulling logs from Grafana Loki as log source
Is your feature request related to a problem? Please describe
Currently, HertzBeat's log integration module supports receiving logs via OTLP protocol, but lacks native integration with Grafana Loki as a log source. Many users have deployed Loki for log storage and want HertzBeat to be able to pull logs from Loki for unified monitoring and analysis.
Describe the solution you'd like
Add native Loki log source integration to enable HertzBeat to pull logs from Loki:
Describe alternatives you've considered
Additional context
Benefits:
Technical References:
Implementation Suggestions:
com.grafana:loki-client)LokiLogSourceclass implementing the log source interface