Setting up Notification Channels

Notification channels dashboard

The Notification Channels dashboard displays the following details.

email template

Note: You can manage channels you have created from the Notification Channels dashboard.

  • Click the    icon to search for channels created for a particular channel type.
  • Click the    icon to edit a channel under the Action column.
  • Click the    icon to delete a channel under the Action column.

The SixthSense platform supports the following notification channels:

  •  Email Notification
  •  Slack Integration
  •  Webhook Integration

Adding an email notification channel

  1. Login to the SixthSense Observability portal.
  2. Click Notification channels on the left pane.
  3. Click Add channel.
  4. In the Add channel window, fill in the following fields.
FieldDescription
Channel nameEnter a name for the channel.
Channel typeSelect Email from the drop-down list.
  1. Enter an email address in the Enter email address field.

  2. Click + icon to add multiple email addresses.

  3. Click Save.

    Alerts will be triggered to all the specified email channels.

Example: Email notification template

email template

The email template contains the following details:

  • The email subject is displayed in the following format: Rakuten SixthSense $Capability : $alert_rule_name. For example in the template, the subject line at the very top says "Rakuten SixthSense Database Monitoring : Bucket dynamic" where Database Monitoring is the capability and Bucket dynamic is the rule name.
  • Alert type denotes if an alert is new or is a continue alert which means notification for alerts is sent after the silence period value is met.
  • Summary displays that a problem was detected with a service name (Application/Server/DB name) and details of the metrics name that was breached, the threshold value (how long the threshold was breached), the current value, and the time period during which alerts were triggered. Sample format of the summary is as follows: SixthSense has detected a problem with $Service_Name where the $Metrics_Name has breached the $Threshold_Value where the current value is $Current_Value for the last $Time.
  • Rule Name is the alert rule name you have created.
  • When displays the date and time when the alert triggerd. The email alerts are in sync with the timezone you have selected from the Settings page. For setting your timezone, see Setting up your timezone.
  • Click the Go to Observability tab in the email you received which will take you to the metric relevant tabs in Database monitoring (Cluster, Node, or Bucket pages) and Mobile monitoring (Crashes or Performance pages) dashboards.

Adding a slack notification channel

  1. Login to the SixthSense Observability portal.
  2. Click Notification channels on the left pane.
  3. Click Add channel.
  4. In the Add channel window, fill in the following fields.
FieldDescription
Channel nameEnter a name for the channel.
Channel typeSelect Slack from the drop-down list.
  1. Enter a slack URL in the Enter slack URL field.

  2. Click + icon to add multiple URLs.

  3. Click Save.

    Alerts will be triggered to all the specified slack channels.

    Example: Slack notification template

    slack template

    The slack channel notification displays the following details:

  • Subject title displays the capability name followed by the alert name you have created.
  • Name of the service that was impacted.
  • Name of the metric that was affected.
  • Name of the alert that you have created.
  • Time when the alert was triggered.

Adding a webhook notification channel

  1. Login to the SixthSense Observability portal.
  2. Click Notification channels on the left pane.
  3. Click Add channel.
  4. In the Add channel window, fill in the following fields.
FieldDescription
Channel nameEnter a name for the channel.
Channel typeSelect Webhook from the drop-down list.

Note: The Data text editor contains the default webhook template.

webhook template
  1. Edit the template and customize using the Supported webhook variables displayed in the right pane. The following table contains the variables and their description.
VariableDescription
{{alert_name}}Specifies the name of the alert.
{{capability}}Specifies the capability of the alert.
{{service_name}}This will specify the application, server hostname, and database name for which an alert is triggered.
{{event_type}}This is specific to an alert that is a new event or continuing event. The alert email received contains a hyperlink to go to the Observability dashboard.
{{severity}}Specifies the severity of the alert.
{{timestamp}}Time at which an alert is triggered
{{tool_name}}The tool which triggered an alert. Default is 'SixthSense'.
{{metric_name}}Metrics on which an alert is triggered.
{{aggregator_operator}}Operators such as Greater than, Less than, and so on.
{{current_value}}The metric value when an alert is triggered.
{{threshold_value}}The threshold value set in an alert.
{{period}}The time period from when an alert triggered until the specified time.
{{url}}This will be replaced with the link to SixthSense dashboard when the event occurred.
  1. Select the Tagging toggle button if you have any alerts tagged.

The following Data text editor screen is displayed.

webhook template

The Supported webhook variables displayed in the right pane varies as in the following table.

VariableDescription
{{priority}}Specifies the priority of the alert.
{{alert_name}}Specifies the name of the alert.
{{end_timestamp}}The timestamp indicating when the execution of the alert rule was finished.
{{agg_time}}The duration starting from the moment the first alert was triggered until the specified time.
{{total_unique_rules}}the total count of distinct alert rules that were violated based on the configured tags.
{{notification_text}}Specifies the custom notification text.
{{service_name}}This will specify the application, server hostname, and database name for which an alert is triggered.
{{metric_name}}Metrics on which an alert is triggered.
{{aggregator_operator}}Operators such as Greater than, Less than, and so on.
{{threshold_value}}The threshold value set in an alert.
{{total_occurrences}}The overall number of occurrences during the active evaluation of alert grouping.
{{ci}}CI refers to configuration item.

Note: The notification text variable allows you to add a customized webhook notification text

  1. Enter a webhook URL in the Enter webhook URL field.

  2. Click + icon to add multiple URLs.

  3. Click Save.

    Alerts will be triggered to all the specified webhook channels.