3.3.2
io.micrometer:micrometer-core
(最新)io.micrometer:micrometer-registry-prometheus
(最新)某些 Tomcat 指标不可见。 输出的指标。
未打印的指标
这是application.yaml
spring:
application:
name: myapplicationname
management:
server:
port: 9123
endpoints:
web:
exposure:
include: "*"
base-path: /actuator
endpoint:
metrics:
enabled: true
health:
enabled: true
probes:
enabled: true
health:
livenessstate:
enabled: true
readinessstate:
enabled: true
metrics:
enable:
tomcat: true
tags:
application: 'myapplicationnameee'
distribution:
percentiles-histogram:
tomcat:
request: true
reactor:
onNext:
delay: true
export:
prometheus:
pushgateway:
enabled: true
push-rate: 1s
server:
port: 98765
shutdown: graceful
这些指标是从 Tomcat MBean 读取的。使用 server.tomcat.mbeanregistry.enabled=true 属性