Adds some preamble to docker metrics plugin