Metrics issue

290 views
Skip to first unread message

annappa V

unread,
Apr 25, 2023, 1:12:17 AM4/25/23
to promethe...@googlegroups.com


Hi everyone,

I'm not getting the "http_requests_total" metrics from /actuator/prometheus  below are the configuration details :

In pom.xml file i  configured these details :

<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-actuator</artifactId>
</dependency>
<dependency>
<groupId>io.micrometer</groupId>
<artifactId>micrometer-registry-prometheus</artifactId>
</dependency>
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-test</artifactId>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-configuration-processor</artifactId>
<optional>true</optional>
</dependency> in application.properties i configured below deatils:
##Actuator Endpoints
management.metrics.web.server.auto-time-requests=true
management.metrics.web.server.requests-metric-name=http.server.requests
management.metrics.web.server.request.autocomplete=true
management.metrics.web.server.request.autocomplete.keys=method,uri,clientName
management.metrics.web.server.tags.uri=uri
management.metrics.web.server.tags.status=auto
management.metrics.web.server.tags.outcome=auto
management.metrics.web.server.tags.exception=auto
management.metrics.web.server.tags.clientName=clientName
management.metrics.binders.http.enabled=true
management.metrics.binders.http.server.request-tags-to-add=URI,http.method
management.endpoints.web.exposure.include=prometheus,health,info
spring.liquibase.enabled=false
spring.liquibase.change-log=classpath:db/liquibase/master.xml
Reply all
Reply to author
Forward
0 new messages