# run_as_root/magento2-prometheus-exporter 4.2.2

> Version 4.2.2 of run_as_root/magento2-prometheus-exporter, released 2026-07-09.

`composer require run_as_root/magento2-prometheus-exporter:4.2.2`

Canonical URL: https://packagento.com/run_as_root/magento2-prometheus-exporter/4.2.2

## At a glance

- **Released**: 2026-07-09
- **Magento**: *
- **PHP**: ^8.2
- **QA**: failing

## What it does

Magento2 Prometheus Exporter

## Dependencies

### Require

| Package | Constraint |
|---|---|
| guzzlehttp/guzzle | ^7.4.5 |
| laminas/laminas-http | ^2.15.0 |
| magento/framework | * |
| magento/module-backend | * |
| magento/module-catalog | * |
| magento/module-cms | * |
| magento/module-config | * |
| magento/module-cron | * |
| magento/module-eav | * |
| magento/module-indexer | * |
| magento/module-payment | * |
| magento/module-quote | * |
| magento/module-sales | * |
| magento/module-shipping | * |
| magento/module-store | * |
| magento/zend-db | * |
| monolog/monolog | ^2.9.0\|^3.0 |
| php | ^8.2 |
| psr/log | ^1.1\|^2.0\|^3.0 |
| symfony/console | ^5.4.46\|^6.0\|^7.0 |

### Require (dev)

| Package | Constraint |
|---|---|
| phpunit/phpunit | ^9.5\|^10.0 |

### Conflict

| Package | Constraint |
|---|---|
| guzzlehttp/guzzle | <7.4.5 |
| monolog/monolog | <2.9.0 |
| symfony/console | <5.4.46 |
| symfony/process | <5.4.46 |

### Suggest

| Package | Constraint |
|---|---|
| magento/module-review | Enables the magento_products_with_bad_reviews_count_total metric |

## Quality

Version 4.2.2 fails the Packagento QA pipeline. Verdicts below are per-cell (Magento line × PHP version) for the matrixed tools, and run-once for the static / security tiers.


### Compatibility

Each Magento line is installed on its supported PHP versions, then the module is built (DI compile + static-content deploy). Cells show passed / failed / untested; staircase gaps render as `–`.

| Magento | PHP 8.2 | PHP 8.3 | PHP 8.4 | PHP 8.5 |
|---|---|---|---|---|
| 2.4.7 | Pass | Pass | – | – |
| 2.4.8 | – | Pass | Pass | – |
| 2.4.9 | – | – | Pass | Pass |


### Code Quality

Advisory checks against the module's source. Never affect the Compatibility verdict — a phpcs finding can't make a module incompatible.

#### Static Analysis

Coding standards (phpcs), mess detection (phpmd), copy-pasted code (cpd), PHP cross-version compatibility, composer.json validity. Each runs once for the whole module.

| Tool | Status | Findings | Summary |
|---|---|---|---|
| PHPCS | Fail | 290 | 30 errors, 260 warnings (ruleset: Magento2), 30 auto-fixable with phpcbf |
| PHPMD | Warning | 17 | 17 rule violations (MissingImport:8, UnusedLocalVariable:5, UnusedFormalParameter:3, ExcessiveMethodLength:1) |
| Cpd | Warning | 5 | 5 duplicated chunks spanning 162 total lines (min-lines=5, min-tokens=70) |
| Composer validate | Info | 15 | valid; 15 advisory notes (composer validate --strict) |

#### PHPStan

Type-checks the module against a real Magento install. Re-runs per Magento + PHP version because resolvable symbols differ between releases.

| Magento | PHP 8.2 | PHP 8.3 | PHP 8.4 | PHP 8.5 |
|---|---|---|---|---|
| 2.4.7 | 29 | 29 | – | – |
| 2.4.8 | – | 30 | 30 | – |
| 2.4.9 | – | – | 30 | 30 |


### Tests

Unit and integration suites run per Magento + PHP cell. Test failures speak to the module's behaviour, not its compatibility with a line, so they're reported here separately.

#### Unit Tests

| Magento | PHP 8.2 | PHP 8.3 | PHP 8.4 | PHP 8.5 |
|---|---|---|---|---|
| 2.4.7 | N/A | N/A | – | – |
| 2.4.8 | – | N/A | N/A | – |
| 2.4.9 | – | – | N/A | N/A |

#### Integration Tests

| Magento | PHP 8.2 | PHP 8.3 | PHP 8.4 | PHP 8.5 |
|---|---|---|---|---|
| 2.4.7 | Pass | Pass | – | – |
| 2.4.8 | – | Pass | not tested | – |
| 2.4.9 | – | – | Pass | Pass |


### Security

Dependency-advisory audit (composer audit) plus a source malware scan. A malware detection fails the version outright.

| Tool | Status | Findings | Summary |
|---|---|---|---|
| Composer audit | Pass | 0 |  |
| Malware scan | Pass | 0 |  |

## Parent package

[run_as_root/magento2-prometheus-exporter](https://packagento.com/run_as_root/magento2-prometheus-exporter.md) — full catalogue, pricing, install steps, and vendor info.

