Added a parameter to put the units of the value. If is not present, it will use the last subfix of the metric name.