This plugin provides native Docker instrumentation for monitoring and metrics collection, including: container status, container number, and container metrics via `docker ps`.
Ruby
Clone or download
Latest commit 98b3418 Jun 30, 2018

README.md

Sensu-Plugins-docker

Build Status Gem Version Code Climate Test Coverage Dependency Status

Functionality

This check supports docker versions >= 1.18. Check docker-engine API for more information

Files

  • check-container.rb
  • check-container-logs.rb
  • check-docker-container.rb
  • metrics-docker-container.rb
  • metrics-docker-stats.rb
  • metrics-docker-info.rb

Usage

Default docker host

By default, all the checks will try to use a default docker host if a specific docker host is not provided to the check on the command line (-H <docker_host> / --docker-host <docker_host>).

Those paramaters will be tried in this order as default docker host :

DOCKER_URL environnement variable
DOCKER_HOST environnement variable
/var/run/docker.sock file

Installation

Installation and Setup

Notes

docker-engine API