Skip to content

Move /metrics from prom-client to @prometheus-io/client once it reaches 1.0 #1169

Open

Description

@helpcodeai

prom-client (used by the opt-in Prometheus /metrics listener, #1131) is now marked deprecated on npm: "prom-client has been replaced by @prometheus-io/client". The successor lives under the Prometheus org (github.com/prometheus/client_js) and is at 0.16.1, first published in August 2026.

prom-client 15.1.3 still works, so nothing is urgent. Once @prometheus-io/client is at 1.0:

  • swap the dependency in packages/backend/package.json;
  • adapt packages/backend/src/common/metrics.ts, which is the only file that imports it, so the change stays in one place;
  • check that the metric names, the default runtime metrics and the metrics.spec.ts assertions stay the same, so existing Prometheus dashboards keep working.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions