mine-legacy-prometheus
Pro read-only mining codemod. Inventories legacy prom-client instrumentation and files that also use OpenTelemetry. Does not modify source.
Metrics
Emits observability_finding and observability_finding_summary.
Shared cardinalities (observability_finding)
| Cardinality | Values / meaning |
|---|---|
category | Always prometheus |
finding_type | See table below |
severity | medium or high |
automatable | false or partial |
priority_hint | 78–88 |
migration_lane | replace or review |
rule_id | PROM-001 … PROM-003 |
file, line, symbol, package | Location and enclosing symbol |
observability_finding_summary keeps only category, finding_type, severity, migration_lane.
Rules / finding_type
| Rule | finding_type | What it means |
|---|---|---|
| PROM-001 | prom_client_import | Import/require of prom-client |
| PROM-002 | prom_client_metric | new Counter / Histogram / Gauge / Summary |
| PROM-003 | dual_prom_and_otel | Same file uses both prom-client and OpenTelemetry |