def add(self, key, metric, **dims):
return super(MetricsRegistry, self).add(<EOL>self.metadata.register(key, **dims), metric)<EOL>
Adds custom metric instances to the registry with dimensions
        which are not created with their constructors default arguments