Skip to content

This Gauge has been already registered "http.server.active.connections" #50040

@nullptr0000

Description

@nullptr0000

Describe the bug

When starting a server with the management port enabled, a warning is generated:

WARN [io.mic.cor.ins.MeterRegistry] (vert.x-acceptor-thread-0) This Gauge has been already registered (MeterId{name='http.server.active.connections', tags=[]}), the registration will be ignored. Note that subsequent logs will be logged at debug level.

Expected behavior

No warning.

Actual behavior

A warning is logged at startup.

How to Reproduce?

Set quarkus.management.enabled=true one a project where both application and management port are using http.

Output of uname -a or ver

No response

Output of java -version

MANDREL 23.1.8.0 JDK 21.0.8+9-LTS

Quarkus version or git rev

3.26.3

Build tool (ie. output of mvnw --version or gradlew --version)

Maven 3.9.11

Additional information

Appears to be exactly the same issue as raised for #46539 but this time for 'connections' instead of 'requests'. I'd assume it needs the same fix(es) involving tags for url.scheme and server.port to allow for differentiation.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions