Re: How to setup metrics on camel-springboot non-web application

2021-06-21 Thread SRIKANT MVS
It's resolved. I added the spring-boot-starter-web and I was able to access the url. Nikhil: the below config was used for representation. Thanks for pointing out. -Regards Srikant On Mon, 21 Jun, 2021, 21:45 Nikhil Vibhav, wrote: > Hey Shrikant > > You've defined base path as /app/metrics. If

Re: How to setup metrics on camel-springboot non-web application

2021-06-21 Thread Nikhil Vibhav
Hey Shrikant You've defined base path as /app/metrics. If you want metrics at the /actuator endpoint then you'll have to remove the management.endpoints.web.base-path=/app/metrics property. Refer https://docs.spring.io/spring-boot/docs/2.1.11.RELEASE/reference/html/production-ready-monitoring.htm

Re: How to setup metrics on camel-springboot non-web application

2021-06-21 Thread SRIKANT MVS
Hi Nikhil, Iam using springboot actuator 2.5 version.Below is how I have configured. management.server.port=8080 management.endpoint.info.enabled=true management.endpoint.health.enabled=true management.endpoint.metrics.enabled=true management.endpoints.web.base-path=/app/metrics management.en

Re: How to setup metrics on camel-springboot non-web application

2021-06-21 Thread Nikhil Vibhav
Don't know if you've already tried this but, if you hit http://localhost:8080/actuator it should show you the available endpoints. With spring boot 2.x you have to enable all/each endpoint using the property *management.endpoints.web.exposure.include=** (or if you just want metrics, replace *** wi

Re: How to setup metrics on camel-springboot non-web application

2021-06-21 Thread SRIKANT MVS
Yes Mark, Spring-web dependency is also added, still not working. -Regards Srikant On Mon, 21 Jun, 2021, 19:16 Mark Nuttall, 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

Re: How to setup metrics on camel-springboot non-web application

2021-06-21 Thread Mark Nuttall
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 wrote: > Hello, > > I am running a kafka consumer application using camel-spring-boot-starter. > The SpringBoot application implements Com