Yes Mark, Spring-web dependency is also added, still not working. -Regards Srikant
On Mon, 21 Jun, 2021, 19:16 Mark Nuttall, <mknutt...@gmail.com> wrote: > For an app to expose http endpoints, it has to be a "web app". > > Why not just add the spring boot web dependency? > > On Mon, Jun 21, 2021 at 12:51 PM SRIKANT MVS <srikant....@gmail.com> > wrote: > > > Hello, > > > > I am running a kafka consumer application using > camel-spring-boot-starter. > > The SpringBoot application implements CommandLineRunner. The below > property > > is configured in my application. > > > > camel.springboot.main-run-controller=true > > > > I am trying to expose the springboot actuator metrics on the port 8080, > but > > I am facing challenges in exposing the endpoint as it’s a non-web > > application. > > > > The url http://localhost:8080/actuator/metrics gives 404 status code. > > > > How can I expose the actuator “/metrics” on an HTTP endpoint for my use > > case ? > > > > Note: Actuator and Camel-management dependencies are available in the > > classpath. > > > > -Regards > > > > Srikant Mantha > > >