This plugin provides native Docker instrumentation for monitoring and metrics collection, including: container status, container number, and container metrics via `docker ps`.
[x] Update Changelog following the conventions laid out on Keep A Changelog
[ ] Update README with any necessary configuration snippets
[ ] Binstubs are created if needed
[x] RuboCop passes
[ ] Existing tests pass
New Plugins
[ ] Tests
[ ] Add the plugin to the README
[ ] Does it have a complete header as outlined here
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).
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
Pull Request Checklist
Is this in reference to an existing issue?
General
[x] Update Changelog following the conventions laid out on Keep A Changelog
[ ] Update README with any necessary configuration snippets
[ ] Binstubs are created if needed
[x] RuboCop passes
[ ] Existing tests pass
New Plugins
[ ] Tests
[ ] Add the plugin to the README
[ ] Does it have a complete header as outlined here
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