Break out mapkey generation into function
Break out mapkey generation into function

Signed-off-by: Vitaliy Sakhartchouk <5cc1609b31c1f5f6ef209b77446cdc2305c6b66a@github.com>

prometheus/statsd_bridge,prometheus/statsd_exporter