magento2-prometheus-exporter icon indicating copy to clipboard operation
magento2-prometheus-exporter copied to clipboard

Issue with Metric Aggregation [MetricFamilies MUST NOT be interleaved.]

Open maurisource opened this issue 8 months ago • 4 comments

So I'm working with the latest version of the module in Adobe Commerce 2.4.7-p1 with Php 8.3.

I face an issue with the following metrics I tested:

TYPE magento_orders_count_total gauge

I've generated the DB with the CLI command: run_as_root:metric:collect

I processed 2 new orders state and perform the Metric Collect command again.

Image

The problem is that the aggregated metrics at the end of file, are being discarded from Prometheus. Shouldn't those new lines be within # TYPE magento_orders_count_total gauge ?

maurisource avatar Feb 12 '25 21:02 maurisource