Monitor Container Performance with Grafana and Zabbix

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: