You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
IMHO, addding @EnableServiceMonitor on top the main class is good enough to express the intention to expose the prometheus endpoint. And thus, the manual configuration should be made optional.
So, what ways do we have in order to pass this configuration to the application?
Environment variables.
Use a configmap with override properties and mount it to the application pod.
Have the apt processor modify the actual application.properties (or yaml).
While option 3 seems to be the simplest, I want to keep the project as decoupled as possible from apt.
The text was updated successfully, but these errors were encountered:
Currently, in order to use prometheus with spring boot, the user has to manually set:
IMHO, addding
@EnableServiceMonitor
on top the main class is good enough to express the intention to expose the prometheus endpoint. And thus, the manual configuration should be made optional.So, what ways do we have in order to pass this configuration to the application?
override
properties and mount it to the application pod.While option 3 seems to be the simplest, I want to keep the project as decoupled as possible from apt.
The text was updated successfully, but these errors were encountered: