For the complete documentation index, see llms.txt. This page is also available as Markdown.

Setting up alerts

1. Introduction

Alerts notify you when critical conditions occur in your OpenCRVS installation, allowing you to respond quickly before issues impact users. OpenCRVS comes with preconfigured alerts, but we recommend customizing these alerts to your country's specific needs.

All alerts and thresholds can be managed through ManagementStack ManagementAlerts and InsightsRules and Connectors.

2. Preconfigured alerts

OpenCRVS comes with the following preconfigured alerts:

Type

Description

Threshold

Alert

CPU load on any node

>70%

Alert

Service error

>0

Alert

Available disk space on encrypted data storage

<30%

These alerts provide a baseline level of monitoring, but should be customized based on your operational experience and specific requirements.

3. Supported alert types

Currently, OpenCRVS supports email alerts out of the box. Other types of alerts (for example, Slack, PagerDuty, webhooks) are available by customizing your country config package.

4. Setting up a new alert

Basic instructions for setting up alerts can be found in the Kibana documentation under Alerts and rules.

Important: Use Index as the connection type

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

5. How alerts are delivered

Our alerting tool Elastalert2 reads alerts from a preconfigured index named kibana-alert-history-default and is configured to send an email to the ALERT_EMAIL email address.

This email address can be changed as part of deployment.

6. Customizing alerts for your context

When customizing alerts, consider:

  • Your infrastructure capacity — set thresholds based on when you need to take action, not just when critical failure is imminent

  • Your support team availability — ensure alerts go to a monitored inbox or on-call rotation

  • Alert fatigue — avoid setting thresholds so low that you receive constant alerts; focus on actionable issues

  • Response time requirements — set more aggressive thresholds for production systems with strict uptime requirements

Example customizations

  • Lower disk space threshold to 40% if provisioning new storage takes several days

  • Add alerts for specific service response times if performance is critical

  • Add alerts for failed backup jobs

  • Add alerts for SSL certificate expiration (for example, 30 days before expiry)

7. Testing alerts

After configuring a new alert:

  1. Test the trigger condition — temporarily adjust thresholds or simulate the condition to verify the alert fires

  2. Verify delivery — confirm that alert emails are received by the intended recipients

  3. Check alert content — ensure the alert message contains enough information to understand and respond to the issue

  4. Document — update your monitoring procedures to include the new alert and expected response

8. Read more

Last updated