当前位置: 首页 > 知识库问答 >
问题:

Spring靴2执行器米制处理器

洪增
2023-03-14

我已经升级到Spring靴2,这反过来又更新了执行器。我使用了Spring Boot1.*执行器度量字段“处理器”,如下所示:

{
"mem": 323621,
"mem.free": 70699,
"processors": 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"
]
}

共有1个答案

冯文彬
2023-03-14

您正在寻找一个名为system.cpu.count的度量。

例如。http://localhost:8080/actuator/metrics/system.cpu.count

 类似资料:
  • 有人能解释jvm.gc.memory.alloceded度量吗?什么意思?

  • 我在应用程序中添加了Spring Boot执行器,但现在我想添加由执行器创建的新服务(/health/metrics..)在我大摇大摆的文件上。 我不知道如何配置执行器和大摇大摆。

  • 我的问题是:如何在使用Log4j2时查看所有记录器的完整列表,而不在Spring-boot应用程序中进行登录? 编辑:这里是我的pom.xml

  • 当我从Spring Boot应用程序访问/healthendpoint时,它返回的状态为UP: 但我想像这样定制我的状态: 如何自定义状态?

  • 我们有独立的Spring Boot应用程序,它触发一些基于触发器的石英作业。它是独立的jar文件,不涉及应用服务器。

  • 我实现了执行器endpoint,如下所示: 如果我试图访问http://localhost:9992/admin/test/filter/configurator/true,则缺少参数:enable。参考附件截图。 遗漏参数