Skip to content

Ability to change metrics URL in docker container #3547

@gr8routdoors

Description

@gr8routdoors

Feature or Problem Description

My organization uses a different URL than the default /metrics specified in the Micrometer spec. I see that the quarkus-micrometer-registry-prometheus extension supports the quarkus.micrometer.export.prometheus.path property for changing the URL in its config reference, but I've tried settings this directly as an environment variable and a property in a JAVA_OPTIONS environment variable for the docker container with no luck.

Proposed Solution

I'm probably missing something obvious (maybe this exists already), but ideally, all quarkus properties are overrideable by environment variables in the docker container - as this is the most ubiquitous way to configure containers of any type.

Additional Context

It looks like another usage of JAVA_OPTIONS was discussed in this previous issue. However, I couldn't understand the resolution for the docker image without the k8s operator. I did try mounting a config volume including an application.properties under /home/jboss as described in the issue, but it wasn't picked up by the application. (I got /home/jboss as the PWD from this dockerfile.)

Digging through more issues I didn't see the aforementioned quarkus property listed in this output from the property configuration documentation issue, so I began to wonder if this was even configurable.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions