# 9.4 Setting up alerts

All alerts and thresholds can be managed through **Management -> Stack Management -> Alerts and Insights -> Rules and Connectors.** OpenCRVS comes with a set of preconfigured alerts, but we recommended these alerts be customised to your country's needs.

Currently, OpenCRVS supports email alerts out of the box. Other types are available by customising your country config package.

#### **Preconfigured alerts**

| Type  | Description                                    | Rule  |
| ----- | ---------------------------------------------- | ----- |
| Alert | CPU load on any node                           | >70%  |
| Alert | Service error                                  | >0    |
| Alert | Available disk space on encrypted data storage | <30 % |

### Setting up a new alert

Basic instructions for setting up alerts can be found from Kibana documentation under [Alerts and rules](https://www.elastic.co/guide/en/kibana/master/apm-alerts.html#apm-alerts).

It is important to use "Index" as the connection type when setting up new alerts. This option instructs Kibana to write alerts to an Elasticsearch index from where other tools can get notified about errors happening in the system.

![](/files/sDh4R8VhahO42q96G6lm)

Our alerting tool [Elastalert2](https://github.com/jertel/elastalert2) reads alerts from a preconfigured index named `kibana-alert-history-default` and is configured to send an email to `ALERT_EMAIL` email address. This email address can be changed as part of [deployment](https://github.com/opencrvs/documentation/blob/master/v1.9.0/setup/3.-installation/3.3-set-up-a-server-hosted-environment/3.3.6-deploy-automated-and-manual).

![](/files/8WskA44SvLeHFxWDzlQM)

**Read more:**

* [Alerting](https://www.elastic.co/guide/en/kibana/current/alerting-getting-started.html)
* [APM - Alerts and rules](https://www.elastic.co/guide/en/kibana/master/apm-alerts.html#apm-alerts)


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://documentation.opencrvs.org/setup/7.-monitoring/7.4-setting-up-alerts.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
