Skip to content

Migrate from Prometheus simpleclient 0.16.0 to client_java 1.3.5 #78

Description

@amotl

About

This project currently uses prometheus_lib=0.16.0. It looks like the most recent release is v1.3.5, and v1.0.0 introduced a breaking change.

Migration notes

The Prometheus Java client library 1.0.0 is a complete rewrite of the underlying data model, and is not backwards compatible with releases 0.16.0 and older.

Good news: Users of version 0.16.0 and older do not need to refactor all their instrumentation code to get started with 1.0.0.
We provide a migration module for bridging the old simpleclient CollectorRegistry to the new PromethesuRegistry.

Updating to the 1.0.0 version is a breaking change. However, there’s a prometheus-metrics-simpleclient-bridge module available that allows you to use your existing simpleclient 0.16.0 metrics with the new 1.0.0 PrometheusRegistry. So you don’t need to upgrade your instrumentation code, you can keep using your existing metrics. See the compatibility > simpleclient in the menu on the left.

Resources

/cc @matriv, @kneth, @surister

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

    dependenciesPull requests that update a dependency filehelp wantedExtra attention is needed

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions