metrics.yaml support

The metrics.yaml file can be included in a charm to declare the metrics the charm will report. If the file is not present, no metrics will be allowed to be sent from the unit (not even built-in ones).
Testing err == nil is a bit unusual. Can you change this to follow the same convention/style as used to read config.yaml above?