Enrich stats API

Returns enrich coordinator statistics and information about enrich policies that are currently executing.

  1. GET /_enrich/_stats

Request

GET /_enrich/_stats

Response body

executing_policies

(Array of objects) Objects containing information about each enrich policy that is currently executing.

Returned parameters include:

  • name

    (String) Name of the enrich policy.

    task

    (Task object) Object containing detailed information about the policy execution task.

coordinator_stats

(Array of objects) Objects containing information about each coordinating ingest node for configured enrich processors.

Returned parameters include:

  • node_id

    (String) ID of the ingest node coordinating search requests for configured enrich processors.

    queue_size

    (Integer) Number of search requests in the queue.

    remote_requests_current

    (Integer) Current number of outstanding remote requests.

    remote_requests_total

    (Integer) Number of outstanding remote requests executed since node startup.

    In most cases, a remote request includes multiple search requests. This depends on the number of search requests in the queue when the remote request is executed.

    executed_searches_total

    (Integer) Number of search requests that enrich processors have executed since node startup.

Examples

  1. GET /_enrich/_stats

The API returns the following response:

  1. {
  2. "executing_policies": [
  3. {
  4. "name": "my-policy",
  5. "task": {
  6. "id": 124,
  7. "type": "direct",
  8. "action": "cluster:admin/xpack/enrich/execute",
  9. "start_time_in_millis": 1458585884904,
  10. "running_time_in_nanos": 47402,
  11. "cancellable": false,
  12. "parent_task_id": "oTUltX4IQMOUUVeiohTt8A:123",
  13. "headers": {
  14. "X-Opaque-Id": "123456"
  15. }
  16. }
  17. }
  18. ],
  19. "coordinator_stats": [
  20. {
  21. "node_id": "1sFM8cmSROZYhPxVsiWew",
  22. "queue_size": 0,
  23. "remote_requests_current": 0,
  24. "remote_requests_total": 0,
  25. "executed_searches_total": 0
  26. }
  27. ]
  28. }