Added support for plugin metrics and also a configuration file