Allow to add additional fields to metrics

allow user to add additional fields to metrics, for example hostname, application name, unique identifier and so on.