Era Software

No results match your query

Alerting with Slack

Estimated reading time: 2 minutes
  • guide
  • alerting
  • slack
  • eracloud

This page shows how to use alerting in EraSearch's UI. By the end of this guide, you'll have an alert rule that sends alert notifications to Slack.

While this guide uses Slack as the notification channel, the UI also supports PagerDuty and Webhooks.

Before you begin
Copy
Copied!

The steps below assume you have an EraCloud account and a Slack Webhook URL.

Sample data
Copy
Copied!

This guide creates an alert on sample, real-time data. See steps one and two in Writing data with Vector to use the same data.

Instructions
Copy
Copied!

Step 1: Access alerting
Copy
Copied!

To access alerting, sign in to your EraCloud account and click Alerts.

Step 2: Configure the notification channel
Copy
Copied!

Follow these steps to create a Slack notification channel:

  1. In the Alerts tab, click Channels > + Add channel.
  2. Configure your notification channel:
    1. For Name, give your notification channel a name, for example, Team alerts channel.
    2. For Type, select Slack.
    3. For Channel, enter the channel associated with your Slack Webhook URL, for example, team-alerts.
    4. For Webhook URL, enter your existing Slack Webhook URL.
  3. Click Test channel to check your configuration and get a sample event in Slack.
  4. Click Save channel.

Step 3: Configure the alert rule
Copy
Copied!

Follow these steps to configure and test your alert rule:

  1. In the Alerts tab, click Rules > + Add rule.

  2. Set the details for your alert rule:

    1. For Name, give a name that'll appear in the alert notification.

      Example: GET 404 errors.

    2. For Desc., add details you want to include in the alert notification.

      Example: Check backend services.

    3. For Query, enter a query using Elasticsearch's query string syntax.

      Example: status:404 AND method:GET AND size:>3000.

  3. Set the conditions for your alert rule by selecting items in the IF, WITHIN, and NOTIFY drop-downs.

  4. Click Test rule to check your configuration and get a sample alert notification in Slack.

  5. Click Save rule to enable the alert rule.

You've officially configured an alert! Note that you can click the megaphone icon to mute and unmute your alert rule in the UI.

Next steps
Copy
Copied!

Visit these pages for more on working with and exploring data in EraSearch: