prometheus actuator integration with springboot

134 views
Skip to first unread message

Prashant Singh

unread,
Feb 17, 2023, 3:15:30 AM2/17/23
to Prometheus Users
spring boot application with TLS . 
need your support for what actuator code will be add with TLS .
pom.xml and application.properties. 

springboot application running with port 7499 with TLS(SSL)




thanks.
prashant 

Prashant Singh

unread,
Feb 17, 2023, 4:34:44 AM2/17/23
to Prometheus Users
my pom.xml

   <dependency>

     <groupId>org.springframework.boot</groupId>

     <artifactId>spring-boot-starter-actuator</artifactId>

   </dependency>

-------------

<dependency>

    <groupId>io.micrometer</groupId>

    <artifactId>micrometer-registry-prometheus</artifactId>

   <dependency>


application.proprties:

Management.endpoints.web.exposure.include=*

Management.endpoint.health.show.details=always

management.server.port=9090
management.server.ssl.enabled=false


after retstart spring boot.

getting error :  accessing  actuator endpoint : http://localhost:9090/actuator

403 forbiden /actuator


thanks,
Prashant 

Prashant Singh

unread,
Feb 20, 2023, 2:50:24 AM2/20/23
to Prometheus Users
Dear All,

I am facing error and not able to expose actuator metrics , because springboot is running with tomcat with TSL/ssl. 

what will be setup for pom.xml and application.properties for actuator points. 

thanks

prashant 

Reply all
Reply to author
Forward
0 new messages