Monitoring

By a stats endpoint, you are able to collect metrics for the plugin within the interval. Note that only node level statistics collecting is implemented for now. In other words, you only get the metrics for the node you’re accessing. Cluster level statistics have yet to be implemented.

Node Stats

Description

The meaning of fields in the response is as follows:

Field nameDescription
request_totalTotal count of request
request_countTotal count of request within the interval
failed_request_count_syserrCount of failed request due to system error within the interval
failed_request_count_cuserrCount of failed request due to bad request within the interval
failed_request_count_cbIndicate if plugin is being circuit broken within the interval

Example

SQL query:

  1. >> curl -H 'Content-Type: application/json' -X GET localhost:9200/_plugins/_sql/stats

Result set:

  1. {
  2. "failed_request_count_cb": 0,
  3. "failed_request_count_cuserr": 0,
  4. "circuit_breaker": 0,
  5. "request_total": 0,
  6. "request_count": 0,
  7. "failed_request_count_syserr": 0
  8. }