- Watcher Reference for 2.x and 1.x:
- Introduction
- Getting Started
- Customizing Watches
- How Watcher Works
- Installing Watcher
- Administering Watcher
- Configuring Watcher to Send Email
- Configuring Watcher to Send Messages to HipChat
- Configuring Watcher to Send Messages to Slack
- Configuring Watcher to Send PagerDuty Events
- Integrating Watcher with Shield
- Integrating Watcher with Logstash
- Configuring the Default Throttle Period
- Configuring the Default HTTP Timeouts
- Configuring the Default Internal Operations Timeouts
- Getting Watcher Statistics
- Monitoring Watch Execution
- Managing Watches
- Example Watches
- Reference
- Managing Your License
- Limitations
- Troubleshooting
- Release Notes
From version 5.0 onward, Watcher is part of X-Pack. For more information, see
Alerting on cluster and index events.
Getting Watcher Statistics
editGetting Watcher Statistics
editYou use the Watcher stats
API to get information about Watcher, such
as the current state, number of watches, size of the execution queue, and the watches that
are currently queued or executing.
For example:
GET _watcher/stats/_all
The response looks like this:
{ "watcher_state": "started", "watch_count": 2, "execution_thread_pool": { "queue_size": 1, "max_size": 40 }, "current_watches": [ { "watch_id": "my_watch", "watch_record_id": "my_watch4_223-2015-05-21T11:59:59.811Z", "triggered_time": "2015-05-21T11:59:59.811Z", "execution_time": "2015-05-21T11:59:59.811Z" } ], "queued_watches": [ { "watch_id": "my_other_watch", "watch_record_id": "my_other_watch4_223-2015-05-21T11:59:59.812Z", "triggered_time": "2015-05-21T11:59:59.812Z", "execution_time": "2015-05-21T11:59:59.812Z" } ] }
To get the version of the Watcher plugin you have installed, call GET _watcher
.
Was this helpful?
Thank you for your feedback.