Skip to content

Performance Metrics

EntryStore collects performance metrics that can be requested by admins (the admin user and members of the _admins group).

EntryStore 6.x provides metrics through the Spring Boot Actuator endpoint /management/metrics (see Management endpoints), based on Micrometer.

GET {base}/management/metrics

returns the names of all available metrics, e.g. http.server.requests for the request statistics and jvm.memory.used for the heap usage. A single metric is requested by its name, optionally filtered by tags:

GET {base}/management/metrics/http.server.requests?tag=uri:/search&tag=method:GET
{
  "name": "http.server.requests",
  "measurements": [
    { "statistic": "COUNT", "value": 6.0 },
    { "statistic": "TOTAL_TIME", "value": 0.534 },
    { "statistic": "MAX", "value": 0.110 }
  ],
  "availableTags": [
    { "tag": "status", "values": ["200"] },
    { "tag": "outcome", "values": ["SUCCESS"] },
    ...
  ]
}

http.server.requests covers all routes. Its tags are method, uri (the route template, e.g. /{context-id}/entry/{entry-id}), status, outcome and exception. Times are given in seconds.

The setting entrystore.metrics=on enables the collection of metrics, which can then be requested with:

GET {base}/management/metrics

The format of the response is:

{
  "GET-search-json-200": {
    "max": 110,
    "mean": 89,
    "percentile-0.95": 105,
    "requests": 6
  }
}

The following urls are included in the metrics:

  • resource
  • entry
  • metadata
  • search

The key is formatted according to this rule:

{operation}-{action}-{response-type}-{http-status}