Netwarden
Back to Documentation
Monitoringv2.0

Container Monitoring

How the agent monitors Docker and Podman containers, and how Kubernetes is covered

Last updated: November 21, 2026
2 min read

Container Monitoring

When a machine runs Docker or Podman, the agent finds the runtime on its own and reports every container on it. There is nothing to install inside the containers.

Supported runtimes

| Runtime | How | |---|---| | Docker | Through the Docker socket (/var/run/docker.sock) | | Podman | Through the Podman socket, or the podman command when no socket is running | | Kubernetes | Through the Netwarden agent for Kubernetes, installed with one kubectl apply (see below) |

What is reported for each container

  • State: running, stopped, restarting or exited, with the exit code and restart count
  • Health: the container's own health check result, when it defines one
  • CPU usage in percent
  • Memory used, its limit and the percentage of the limit
  • Network bytes received and sent
  • Disk bytes read and written
  • The number of running containers on the machine

Containers show on the host's page, and the Container status widget puts them on any dashboard.

Configuration

Container monitoring is on by default. In netwarden.conf:

yaml
enable_containers: true
container_runtime: auto                 # auto, docker or podman
# container_socket: /var/run/docker.sock  # only if the socket is somewhere unusual
# container_stats_interval: 60s

On Linux the agent runs as root, so it can read the Docker and rootful Podman sockets. For rootless Podman, point container_socket at that user's socket (for example /run/user/1000/podman/podman.sock).

Alerts on containers

Any container metric can carry an alert: open Alerts → Create alert, pick the host, then the container metric, for example a container's memory as a percentage of its limit.

Kubernetes

For a cluster, use the Kubernetes agent rather than the host agent on each node. In the app choose Add host and the Kubernetes tab, pick what to collect, and run the kubectl apply command it gives you. It reports:

  • Nodes: CPU, memory and pressure
  • Workloads: availability of deployments, stateful sets and daemon sets
  • Jobs and CronJobs that failed or stopped running on schedule
  • Pods that can't pull their image
  • CloudNativePG clusters, when present
  • Optionally, the ingress controller's log, to spot attacks on your sites

The cluster appears under Kubernetes in the navigation.

Related

Something unclear or wrong on this page? Write to us and the people who build Netwarden will fix it.