sensu-plugins / sensu-plugins-docker

This plugin provides native Docker instrumentation for monitoring and metrics collection, including: container status, container number, and container metrics via `docker ps`.
http://sensu-plugins.io
MIT License
35 stars 57 forks source link

Adding io metrics collection, environment values into metric name and general docker info stats #55

Closed alcasim closed 7 years ago

alcasim commented 7 years ago

Pull Request Checklist

Is this in reference to an existing issue?

General

New Plugins

Purpose

Adding metrics-docker-info.rb with general information related to Docker (total number of containers, images, go routines, file descriptors...). These metrics mimics how telegraf gathers information from the docker plugin, and can be useful for people evaluating Sensu as source for their metrics.

In metrics-docker-stats.rb I have added two features: io metric collection from docker virtual devices, in telegraf style also Including some environment variables values into the metric (another feature from telegraf).

Please find some output for these changes in https://gist.github.com/alcasim/d21be7ff09d519d5aadb9d5d8215ec86

Also those changes performed on existing metric check (metrics-docker-stats.rb) are optional, so users won't be affected by including new flags into the checks

Known Compatability Issues

majormoses commented 7 years ago

released: https://rubygems.org/gems/sensu-plugins-docker/versions/1.4.0