def mmap_key(metric_name, name, labelnames, labelvalues):
<EOL>labels = dict(zip(labelnames, labelvalues))<EOL>return json.dumps([metric_name, name, labels], sort_keys=True)<EOL>
Format a key for use in the mmap file.