mirror of
https://github.com/Dannecron/spring-boot-demo.git
synced 2025-12-26 00:32:34 +03:00
expose prometheus metrics, add health endpoint
This commit is contained in:
@@ -32,4 +32,24 @@ springdoc:
|
||||
api-docs:
|
||||
path: /doc/openapi
|
||||
swagger-ui:
|
||||
path: /doc/swagger-ui.html
|
||||
path: /doc/swagger-ui.html
|
||||
|
||||
management:
|
||||
server:
|
||||
port: 8081
|
||||
endpoints:
|
||||
web:
|
||||
base-path: /
|
||||
path-mapping:
|
||||
metrics: spring-metrics
|
||||
prometheus: metrics
|
||||
info: version
|
||||
exposure:
|
||||
include: health,prometheus,info,metrics
|
||||
endpoint:
|
||||
health:
|
||||
show-details: always
|
||||
metrics:
|
||||
distribution:
|
||||
percentiles-histogram:
|
||||
"[http.server.requests]": true
|
||||
Reference in New Issue
Block a user