Adds docker metrics plugin

Originally made by @mikz
Fix shadowing
Add readlines
Adds some preamble to the plugin