-
Notifications
You must be signed in to change notification settings - Fork 3.2k
librdkafka Grafana dashboard populated from statistics JSON message #5246
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
Conversation
|
🎉 All Contributor License Agreements have been signed. Ready to merge. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull Request Overview
This PR introduces a Grafana dashboard for visualizing librdkafka statistics collected from JSON messages. The dashboard uses VictoriaMetrics as a time-series database and supports PromQL queries for metrics visualization.
Key Changes:
- Implemented a Python script to parse librdkafka stats JSON from log files and store them in SQLite
- Created Docker Compose setup with Grafana and VictoriaMetrics for metrics visualization
- Added automated dashboard provisioning with configurable scrape intervals
Reviewed Changes
Copilot reviewed 9 out of 11 changed files in this pull request and generated 3 comments.
Show a summary per file
| File | Description |
|---|---|
| stats-dashboard/run.py | Main script orchestrating log parsing, database creation, metrics backfilling, and dashboard initialization |
| stats-dashboard/docker-compose.yml | Docker Compose configuration for Grafana and VictoriaMetrics services |
| stats-dashboard/requirements.txt | Python dependencies including prometheus-remote-writer |
| stats-dashboard/provisioning/datasources/victoriametrics.yaml | Grafana datasource configuration for VictoriaMetrics |
| stats-dashboard/provisioning/dashboards/dashboards.yaml | Grafana dashboard provisioning configuration |
| stats-dashboard/victoriametrics/prometheus.yml | VictoriaMetrics scrape configuration |
| stats-dashboard/conf/grafana.ini | Grafana server configuration file |
| stats-dashboard/README.md | Documentation for setup and usage |
| stats-dashboard/.gitignore | Git ignore rules for generated database file |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
7ddab65 to
49b3b24
Compare
when coming from different nodes (for example different Kubernetes pods)
49b3b24 to
52c197b
Compare
The dashboard uses PromQL and can also be used when metrics are collected through Prometheus or compatible service.