January 2018
Intermediate to advanced
414 pages
10h 29m
English
The metrics endpoint available in the URL http://localhost:8080/actuator/metrics/ provides statistics on our microservice. If we invoke this URL, we can see the following names; each of them will be a metric that we can use to get more information on:
{ "names": [ "jvm.buffer.memory.used", "jvm.memory.used", "jvm.buffer.count", "logback.events", "process.uptime", "jvm.memory.committed", "jvm.buffer.total.capacity", "jvm.memory.max", "system.cpu.count", "process.start.time" ]}
If we like to get details on the JVM memory used, we can use the URL http://localhost:8080/actuator/metrics/jvm.memory.used:
{ "name": "jvm.memory.used", "measurements": [ { "statistic": "Value", "value": 195595240 } ], "availableTags": [ { "tag": "area", ...Read now
Unlock full access