The buckets of a histogram and the quantiles of a summary must appear in increasing numerical order of their label values (for the le or the quantile label, respectively).
This hasn't been a problem with the Prometheus versions we've used up to now. However, I have a client that's migrating to GCP right now where they're using the Managed Prometheus offering, which doesn't process the wrongly ordered histogram buckets.
Not sure what (custom?) Prometheus version GCP is using here (it's all pretty much hidden), though.
The docs on the Prometheus exposition format say
This hasn't been a problem with the Prometheus versions we've used up to now. However, I have a client that's migrating to GCP right now where they're using the Managed Prometheus offering, which doesn't process the wrongly ordered histogram buckets.
Not sure what (custom?) Prometheus version GCP is using here (it's all pretty much hidden), though.