Ad Widget

Collapse

Create widget showing resource intensive docker containers across multiple hosts

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • benz
    Junior Member
    • Jun 2023
    • 1

    #1

    Create widget showing resource intensive docker containers across multiple hosts

    We are investigating whether Zabbix is the monitoring solution that we can use for our infrastructure.
    Our setup:

    Zabbix host:
    Docker:
    -> zabbix-server
    -> zabbix-frontend
    -> zabbix-agent2

    Host1:
    Docker:
    -> container1
    -> container2
    -> ...
    -> zabbix-agent2 (used to read data from the docker network & host)

    Host2:
    Docker:
    -> container3
    -> container4
    -> ...
    -> zabbix-agent2 (used to read data from the docker network & host)

    The configuration already works. In zabbix both Host1 & Host2 are seen as hosts, docker containers are visible and we get alerts when one of the containers goes down.

    One of the things we are missing right now is a way to display the top 10 CPU/Memory intensive docker containers across all hosts on the Zabbix dashboard. We already found a way to show the top10 host CPU & memory information, but there doesn't seem to be a way to do the same for the docker containers.

    How can we do that? Please let us know if you need extra information!

    TLDR: How can we create a dashboard widget that shows us the top 10 CPU/Memory intensive docker containers across multiple hosts.​
  • cyber
    Senior Member
    Zabbix Certified SpecialistZabbix Certified Professional
    • Dec 2006
    • 4811

    #2
    Not knowing much about containers, but you need to measure that cpu usage somehow and then you can use the same top10..

    Comment

    • Jonithmartha34
      Junior Member
      • Jun 2023
      • 2

      #3
      To create a Zabbix dashboard widget that displays the top 10 CPU/Memory intensive Docker containers across multiple hosts, you can follow these steps:
      1. Log in to your Zabbix web interface and navigate to the Dashboard section.
      2. Create a new dashboard or edit an existing one.
      3. Click on the "Add widget" button to add a new widget to the dashboard.
      4. In the widget configuration, select the "Data overview" widget type.
      5. In the "Data source" section, choose "Items" as the source.
      6. Configure the widget options as follows:
        • Select the appropriate host group(s) or individual hosts that contain the Docker containers you want to monitor.
        • Specify the desired CPU and Memory items for the Docker containers. You can use the Zabbix item keys related to Docker container monitoring (e.g., docker.cpu.usage, docker.mem.usage, etc.).
        • Set the number of items to display to 10.
      7. Customize the widget display settings, such as the widget title, refresh interval, and size.
      8. Save the widget configuration and add it to your dashboard.

      Comment

      Working...