Skip to main content
Probe này đang trong kế hoạch phát triển.

Mô tả

Probe container_mon giám sát Docker và Docker Swarm container qua Docker Engine API (HTTP trên unix socket). Theo dõi trạng thái running, restart count, và tùy chọn CPU/memory stats. Build tag vms_heavy — không có trong package agent mặc định.

Config fields

Metrics

Ví dụ config

Docker Swarm service:

Lưu ý

  • Tối đa 50 container match per run — giới hạn request và cardinality.
  • Docker socket không reachable → status unknown, emit vms.agent.permission_missing{capability=docker.sock}.
  • Không match container nào → status down, severity critical.
  • collectStats chỉ thu thập cho container đang running. Stats lấy từ Docker one-shot stats API (stream=false).
  • CPU% tính từ 2 cumulative sample (current vs precpu_stats) trong response.