Spring 引导 2 执行器指标 - 处理器
Spring Boot 2 Actuator Metric - Processors
我已经升级到 Spring Boot 2,后者又更新了执行器。我正在使用 Spring Boot 1.* Actuator metrics 字段 'processors' 像这样:
{
"mem": 323621,
"mem.free": 70699,
"processors": 2,
....
但似乎无法在 Spring Boot 2 指标名称中找到它:
{
"names": [
"http.server.requests",
"jvm.buffer.memory.used",
"jvm.memory.committed",
"tomcat.global.request.max",
"jvm.memory.used",
"jdbc.connections.min",
"tomcat.sessions.created",
"tomcat.sessions.expired",
"logback.events",
"system.cpu.count",
"jvm.memory.max",
"jdbc.connections.active",
"jvm.gc.pause",
"process.files.max",
"jvm.threads.daemon",
"hikaricp.connections",
"process.start.time",
"hikaricp.connections.active",
"hikaricp.connections.creation.percentile",
"tomcat.global.error",
"tomcat.sessions.active.max",
"tomcat.global.sent",
"jvm.gc.live.data.size",
"process.files.open",
"hikaricp.connections.acquire",
"hikaricp.connections.timeout",
"hikaricp.connections.idle",
"hikaricp.connections.pending",
"jvm.buffer.total.capacity",
"hikaricp.connections.usage.percentile",
"tomcat.cache.access",
"jvm.threads.live",
"jvm.classes.loaded",
"jvm.classes.unloaded",
"hikaricp.connections.creation",
"jvm.gc.memory.promoted",
"tomcat.sessions.rejected",
"tomcat.sessions.alive.max",
"jvm.gc.memory.allocated",
"hikaricp.connections.usage",
"jvm.gc.max.data.size",
"jvm.buffer.count",
"process.cpu.usage",
"tomcat.servlet.request",
"process.uptime",
"system.load.average.1m",
"tomcat.global.received",
"tomcat.cache.hit",
"tomcat.threads.config.max",
"hikaricp.connections.acquire.percentile",
"tomcat.servlet.error",
"tomcat.servlet.request.max",
"jdbc.connections.max",
"tomcat.sessions.active.current",
"system.cpu.usage",
"tomcat.threads.busy",
"tomcat.threads.current",
"jvm.threads.peak",
"tomcat.global.request"
]
}
我正在寻找 Spring Boot 1 指标值 'processors' 在 Spring Boot 2 中的等价物。
有谁知道这个值是否仍然可用,名称是什么,或者它是否已被移动到其他地方,或者它是否不再存在。
您正在查找名为 system.cpu.count
的指标。
我已经升级到 Spring Boot 2,后者又更新了执行器。我正在使用 Spring Boot 1.* Actuator metrics 字段 'processors' 像这样:
{
"mem": 323621,
"mem.free": 70699,
"processors": 2,
....
但似乎无法在 Spring Boot 2 指标名称中找到它:
{
"names": [
"http.server.requests",
"jvm.buffer.memory.used",
"jvm.memory.committed",
"tomcat.global.request.max",
"jvm.memory.used",
"jdbc.connections.min",
"tomcat.sessions.created",
"tomcat.sessions.expired",
"logback.events",
"system.cpu.count",
"jvm.memory.max",
"jdbc.connections.active",
"jvm.gc.pause",
"process.files.max",
"jvm.threads.daemon",
"hikaricp.connections",
"process.start.time",
"hikaricp.connections.active",
"hikaricp.connections.creation.percentile",
"tomcat.global.error",
"tomcat.sessions.active.max",
"tomcat.global.sent",
"jvm.gc.live.data.size",
"process.files.open",
"hikaricp.connections.acquire",
"hikaricp.connections.timeout",
"hikaricp.connections.idle",
"hikaricp.connections.pending",
"jvm.buffer.total.capacity",
"hikaricp.connections.usage.percentile",
"tomcat.cache.access",
"jvm.threads.live",
"jvm.classes.loaded",
"jvm.classes.unloaded",
"hikaricp.connections.creation",
"jvm.gc.memory.promoted",
"tomcat.sessions.rejected",
"tomcat.sessions.alive.max",
"jvm.gc.memory.allocated",
"hikaricp.connections.usage",
"jvm.gc.max.data.size",
"jvm.buffer.count",
"process.cpu.usage",
"tomcat.servlet.request",
"process.uptime",
"system.load.average.1m",
"tomcat.global.received",
"tomcat.cache.hit",
"tomcat.threads.config.max",
"hikaricp.connections.acquire.percentile",
"tomcat.servlet.error",
"tomcat.servlet.request.max",
"jdbc.connections.max",
"tomcat.sessions.active.current",
"system.cpu.usage",
"tomcat.threads.busy",
"tomcat.threads.current",
"jvm.threads.peak",
"tomcat.global.request"
]
}
我正在寻找 Spring Boot 1 指标值 'processors' 在 Spring Boot 2 中的等价物。
有谁知道这个值是否仍然可用,名称是什么,或者它是否已被移动到其他地方,或者它是否不再存在。
您正在查找名为 system.cpu.count
的指标。