Elasticsearch Watcher Integration Guide
Watcher is the alerting and notification plugin for Elastisearch. It allows alerts to be created based on defined queries on Elasticsearch. TaskCall provides an endpoint where the alerts can be sent to trigger incidents allowing the underlying issue to be resolved faster.
- The integration happens between a TaskCall service and Elasticsearch Watcher.
- Incidents will automatically resolve in TaskCall when issues are resolved in Elasticsearch.
- At the moment this integration only supports alerts to be received from Elasticsearch Watcher to TaskCall.
- Go to Configurations > Services . Select the service you want to integrate with.
- Once you are on the Service details page, go to the Integrations tab. Click on New Integration.
- Give the integration a name.
- From the integration types, select the top radio button indicating that you are trying to use a built-in integration.
- From the list of built-in integrations, select Prometheus.
- Click Save.
- Copy the Integration Key that is issued for the integration.
- Go to your Elasticsearch server.
- Make sure that you have Watcher set up and running on the server. You can verify by running the following curl command:
This should produce an output stating that Watcher has been started.
- Set up a watch with a Webhook for TaskCall and use a PUT request to add it to Watcher. Replace the <INTEGRATION_KEY> market in the body of attribute with the the Integration Key you copied over from TaskCall.
- Please schedule the watch time, interval and conditions as per your need. The above is a minimal example of a configuration.
- The body attribute can be customized to include more information. However, it must always at least contain the following fields -- cluster, watch_id, status, description and message. TaskCall uses the description attribute as the incident title . while all the attributes of the body are displayed on the incident
- TaskCall only triggers incidents when the status of the alert is red. It automatically resolves the incident when the alert status changes to green.