Does the order of labels matter?


I’m working on a proprietary metrics framework that exposes the metrics page for Prometheus to scrape from.

I wonder if will it affect the Prometheus server if I change the order of labels. For instance,

In framework v1 I expose metrics with unordered labels:

in framework v2 labels are lexicographically sorted:

Is the order of metrics important? Will Prometheus be able to continue scraping my metric endpoint with no issues?


The order is not important.