Skip to content

Deprecate support for io.micrometer.prometheus.PrometheusMeterRegistry in favor of io.micrometer.prometheusmetrics.PrometheusMeterRegistry #39904

Closed as not planned
@wilkinsona

Description

@wilkinsona

As part of #39889, a number of deprecation warnings have been suppressed. This was done to adapt to changes in Micrometer as simply as possible, but we'll have to do more in the longer term.

Micrometer 1.13 has introduced a new module, io.micrometer:micrometer-registry-prometheus-simpleclient, that contains the old io.micrometer.prometheus.PrometheusMeterRegistry and related classes in a deprecated form. The existing io.micrometer:micrometer-registry-prometheus module now contains new code for use with the new Prometheus client. As things stand after #39889, we only support the former and users will have to depend on micrometer-registry-prometheus-simpleclient rather than io.micrometer:micrometer-registry-prometheus to use Boot's Prometheus auto-configuration.

Given these changes, we need to deprecate our support for micrometer-registry-prometheus-simpleclient and introduce support for io.micrometer:micrometer-registry-prometheus. It remains to be seen how complicated this will be. Ideally, we'd be able to use the same configuration properties but:

  • there may be some differences in the properties offered by the two modules
  • we reference the now-deprecated io.micrometer.prometheus.HistogramFlavor in PrometheusProperties

Metadata

Metadata

Assignees

No one assigned

    Labels

    status: supersededAn issue that has been superseded by another

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions