You are here:
Create a Metric Alert in Log Center
Notify your team when a supported B2C Commerce metric crosses a warning or critical threshold.
For Slack, PagerDuty, or Microsoft Teams, create the notification configuration before you create the alert.
Metrics Alerting is available as an open beta. For the metric families, notification timing, and who can create an alert, see Metrics Alerting (Beta).
- Log in to Log Center. For the ways to access Log Center, including from Business Manager, see Access Log Center.
- On the Alerts tab, go to Alert Management.
- Click Create Alert, and then select the Metrics tab.
- Enter an alert name and, optionally, a description. Select one or more realms, and select every tenant that the alert covers.
- Select a metric family and a metric.
-
(Optional) To alert on selected values only, set the filters that appear for that
metric.
Some metric families, such as Open Commerce API (OCAPI), show filters after you select the metric. For OCAPI, the filters include Category and API. Select one or more values. Leave a filter empty to alert on every value combined.
-
From Rule, select the condition for the metric.
For example, for system workload, select the rule that checks whether the value is above the threshold. If you set filters, select the rule that matches those filters.
-
Enter the warning and critical threshold values.
The Metric Preview chart shows the last 24 hours of the metric with both thresholds, so you can check the values before you save.
-
Under Notification Channel Type, add one or more
channels.
You can notify more than one channel type from the same alert, such as email and Slack. For Slack, PagerDuty, and Microsoft Teams, select a configuration that includes every realm selected on the alert.
- For email, enter up to five recipient addresses. Press Enter, comma, or Tab after each address.
- For Slack, PagerDuty, or Microsoft Teams, select an existing notification configuration.
- Select Enabled, and then click Create.
Log Center can take up to one minute to send the notification after a threshold breach. When the metric no longer breaches the threshold, the alert resolves and Log Center sends a resolution notification. If the alert stays open, then Log Center repeats the notification every four hours.
