Add an example config
Made monitoring code use yaml config