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

[check-container.rb] Allow the use of regexp or glob to describe container name #78

Open arthurzenika opened 5 years ago

arthurzenika commented 5 years ago

In some cases (docker-compose upgrade, or other) the names of the containers change. For example in recent version upgrades we went from folder-with-dash_service_number to folderwithdash_service_number.

It would be nice to have a simple glob type syntax to check the existence of a container runner so that we could have *_service_* instead of folder-with-dash_service_number.