Listen to this Post
Amanda Araújo shared her first Grafana dashboard, designed to monitor container services using Zabbix for the IT Section at FMRP-USP. The dashboard tracks:
– Real-time container status (active/inactive, uptime, total count).
– Resource utilization (CPU, memory, disk, network).
– Individual container performance on the local network.
You Should Know:
1. Zabbix Agent Installation (Linux):
wget https://repo.zabbix.com/zabbix/6.0/ubuntu/pool/main/z/zabbix-release/zabbix-release_6.0-4+ubuntu22.04_all.deb sudo dpkg -i zabbix-release_6.0-4+ubuntu22.04_all.deb sudo apt update sudo apt install zabbix-agent sudo systemctl enable --now zabbix-agent
2. Grafana Setup with Docker:
docker run -d --name=grafana -p 3000:3000 grafana/grafana-enterprise
3. Zabbix-Grafana Integration Steps:
- Add Zabbix as a data source in Grafana (URL: `http://zabbix-server/api_jsonrpc.php`).
- Use the Zabbix plugin for Grafana to import dashboard templates.
4. Key Queries for Container Monitoring:
- CPU Usage: `avg(container_cpu_usage_seconds_total{container_name=”
“} )` </li> <li>Memory: `container_memory_usage_bytes{container_name="<NAME>"}` </li> </ul> <h2 style="color: yellow;">5. Alerting Rules (Grafana):</h2> [bash] alert: HighCPUUsage expr: avg(container_cpu_usage_seconds_total) > 0.8 for: 10m labels: severity: critical
What Undercode Say:
Grafana and Zabbix form a robust observability stack for containerized environments. For deeper insights:
– Use `docker stats` for real-time CLI monitoring.
– Combine Prometheus with Zabbix for multi-source metrics:prometheus --config.file=/etc/prometheus/prometheus.yml
– Explore Linux commands like
htop
,nmon
, or `netdata` for ad-hoc analysis.Expected Output:
A dynamic dashboard visualizing container health, resource thresholds, and automated alerts.
URLs for further reading:
References:
Reported By: Amanda Ara%C3%BAjo – Hackers Feeds
Extra Hub: Undercode MoN
Basic Verification: Pass ✅Join Our Cyber World: