-
Notifications
You must be signed in to change notification settings - Fork 353
Actuator prometheus endpoint not get registered #423
Comments
@aclement Could you please have a look to this one when you have some time? |
Sorting out the exact configuration to make it work is a long job. But I have confirmed it works fine if you use the agent to collect the full configuration and build with that. |
Let's move that one to 0.9.1. |
I tested with 0.9.1. I got the same issue, so I generated the reflect-config.json with Got an error I delete from {
"name":"org.graalvm.compiler.hotspot.management.AggregatedMemoryPoolBean",
"allPublicConstructors":true
},
{
"name":"org.graalvm.nativeimage.ImageInfo",
"methods":[{"name":"inImageCode","parameterTypes":[] }]
}, Now compilation is correct and prometheus endpoint is there. The final (native) artifact was ~30Mb heavier, so I try to do a big clean. Removed [
{
"name":"org.springframework.boot.actuate.metrics.export.prometheus.PrometheusScrapeEndpoint",
"allDeclaredFields":true,
"allDeclaredMethods":true
}
] Still working, native artifact reduced by the ~30Mb previously added. |
Ok we can probably add that hint in 0.9.2 then, thanks for the exploratory work. |
I also added heath endpoint and info endpoint. Both are not discovered by default. I had to add {
"name":"org.springframework.boot.actuate.health.HealthEndpoint",
"allDeclaredFields":true,
"allDeclaredMethods":true
},
{
"name":"org.springframework.boot.actuate.info.InfoEndpoint",
"allDeclaredFields":true,
"allDeclaredMethods":true
} |
Seems that metrics endpoint works only with this configuration
|
@GregoireW: @prettymama Now with all these changes I am verifying the endpoints are reachable, not verifying all potential data is available for the endpoints. Please raise new issues for further data within these that looks to be missing. |
@aclement Out of curiosity, what did you add (and where) to have those hint ? there is no anyway I checked, Not sure why I put the health endpoint. It was working from the start. I check quickly and 0.9.2-SNAPSHOT fixes the issue. Thank you |
When I build the app with the "io.micrometer:micrometer-registry-prometheus" dependency, this is supposed to enable prometheus scrapping endpoint, (when I run the jar in JVM it is).
But when I run the binary generated by graalvm native-image feature the prometheus endpoint is not registered and not available.
The text was updated successfully, but these errors were encountered: