...
There are several endpoint.
Prometheus Endpoint
http://<HOST>:<PORT>/<WEB CONTEXT>/actuator/prometheus
Metrics Endpoint
http://<HOST>:<PORT>/<WEB CONTEXT>/actuator/metrics
This will provide you a list of available metrics names without the values.
You can request the metrics
...
value by
http://<HOST>:<PORT>/<WEB CONTEXT>/actuator/metrics/<METRIC NAME>
Example:
Request:
Code Block |
---|
http://<HOST>:<PORT>/<WEB CONTEXT>/actuator/metrics/jvm.buffer.memory.used |
Response:
Code Block |
---|
{
"name": "jvm.buffer.memory.used",
"description": "An estimate of the memory that the Java virtual machine is using for this buffer pool",
"baseUnit": "bytes",
"measurements":[
{ "statistic": "VALUE",
"value":1073153.0}
],
"availableTags":[
{ "tag": "id",
"values": ["direct","mapped - 'non-volatile memory'","mapped"] }
]
} |
Health Endpoint
http://<HOST>:<PORT>/<WEB CONTEXT>/actuator/health