Get Watcher statistics Added in 5.5.0
Path parameters
-
Defines which additional metrics are included in the response.
Query parameters
-
emit_stacktraces boolean
Defines whether stack traces are generated for each watch that is running.
-
metric string | array[string]
Defines which additional metrics are included in the response.
GET
/_watcher/stats/{metric}
curl \
-X GET http://api.example.com/_watcher/stats/{metric}
Response examples (200)
{
"_nodes": {
"failures": [
{
"type": "string",
"reason": "string",
"stack_trace": "string",
"caused_by": {},
"root_cause": [
{}
],
"suppressed": [
{}
]
}
],
"total": 42.0,
"successful": 42.0,
"failed": 42.0
},
"cluster_name": "string",
"manually_stopped": true,
"stats": [
{
"current_watches": [
{
"execution_phase": "awaits_execution",
"executed_actions": [
"string"
],
"watch_id": "string",
"watch_record_id": "string"
}
],
"execution_thread_pool": {
"max_size": 42.0,
"queue_size": 42.0
},
"queued_watches": [
{
"": "string"
}
],
"watch_count": 42.0,
"watcher_state": "stopped",
"node_id": "string"
}
]
}