Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

There are several endpoint.

Prometheus Endpoint

http://<HOST>:<PORT>/actuator/prometheus

Metrics Endpoint

http://<HOST>:<PORT>/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>/actuator/metrics/<METRIC NAME>

Example:

Request:

Code Block
http://<HOST>:<PORT>/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>/actuator/health

Info Endpoint

http://<HOST>:<PORT>/actuator/info