+
Skip to content

MeterFilter is configured after a Meter has been registered #36927

Closed
@hjhill

Description

@hjhill

Before reporting an issue

  • I have read and understood the above terms for submitting issues, and I understand that my issue may be closed without action if I do not follow them.

Area

dist/quarkus

Describe the bug

When starting the latest Keycloak docker container (26.1.0-0) with the parameter --metrics-enabled=true, the following warning is shown 5 times:

WARN  [io.micrometer.core.instrument.composite.CompositeMeterRegistry] (main) A MeterFilter is being configured after a Meter has been registered to this registry. All MeterFilters should be configured before any Meters are registered. If that is not possible or you have a use case where it should be allowed, let the Micrometer maintainers know at https://github.com/micrometer-metrics/micrometer/issues/4920. Enable DEBUG level logging on this logger to see a stack trace of the call configuring this MeterFilter.

Enabling DEBUG (which BTW only works when it's enabled globally) shows this:
micrometer-debug.txt

Version

26.1.0

Regression

  • The issue is a regression

Expected behavior

No warning messages from Micrometer.

Actual behavior

Warning message from micrometer is shown.

How to Reproduce?

Run docker run -m 1G keycloak/keycloak:26.1.0-0 start-dev --metrics-enabled=true and look for the warning message in the log

Anything else?

No response

Metadata

Metadata

Assignees

Type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions

    点击 这是indexloc提供的php浏览器服务,不要输入任何密码和下载