mirror of
https://github.com/iSharkFly-Docs/opensearch-docs-cn
synced 2025-03-08 18:19:21 +00:00
* Merge pull request #1 from Yury-Fridlyand/dev-update-sql-relevance-docs Update SQL plugin relevance functions documentation. Co-authored-by: MaxKsyunz <maxk@bitquilltech.com> Signed-off-by: Yury Fridlyand <yuryf@bitquilltech.com> * Address PR feedback. Signed-off-by: Yury Fridlyand <yuryf@bitquilltech.com> * Address PR feedback by @joshuali925. Signed-off-by: Yury Fridlyand <yuryf@bitquilltech.com> * Remove PPL page from Observability Plugin. Add link to Observability page. Make some simple formatting changes Signed-off-by: Naarcha-AWS <naarcha@amazon.com> * Reword paragraph Signed-off-by: Naarcha-AWS <naarcha@amazon.com> * Adds SQL and PPL API and other SQL plugin changes Signed-off-by: Fanit Kolchina <kolchfa@amazon.com> * Formatting changes Signed-off-by: Fanit Kolchina <kolchfa@amazon.com> * Incorporates editorial comments Signed-off-by: Fanit Kolchina <kolchfa@amazon.com> Signed-off-by: Yury Fridlyand <yuryf@bitquilltech.com> Signed-off-by: Naarcha-AWS <naarcha@amazon.com> Signed-off-by: Fanit Kolchina <kolchfa@amazon.com> Co-authored-by: Yury Fridlyand <yuryf@bitquilltech.com> Co-authored-by: MaxKsyunz <maxk@bitquilltech.com> Co-authored-by: Fanit Kolchina <kolchfa@amazon.com>
1.4 KiB
1.4 KiB
layout | title | parent | nav_order |
---|---|---|---|
default | Monitoring | SQL and PPL | 95 |
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 name | Description |
---|---|
request_total | Total count of request |
request_count | Total count of request within the interval |
failed_request_count_syserr | Count of failed request due to system error within the interval |
failed_request_count_cuserr | Count of failed request due to bad request within the interval |
failed_request_count_cb | Indicate if plugin is being circuit broken within the interval |
Example
SQL query:
>> curl -H 'Content-Type: application/json' -X GET localhost:9200/_plugins/_sql/stats
Result set:
{
"failed_request_count_cb": 0,
"failed_request_count_cuserr": 0,
"circuit_breaker": 0,
"request_total": 0,
"request_count": 0,
"failed_request_count_syserr": 0
}