You are here:
Metrics Alerting (Beta)
Send a notification when a supported B2C Commerce metric crosses a warning or critical threshold. Use Metrics Alerting in Log Center to watch application, sales, API, and storefront health, and route the notification to email, Slack, PagerDuty, or Microsoft Teams.
Metrics Alerting is available as an open beta. No additional license is required. When a metric breaches a warning or critical threshold, Log Center sends a notification to the channels on the alert. A notification can take up to one minute after the breach. If the alert stays open, then Log Center repeats the notification every four hours. When the metric no longer breaches the threshold, the alert resolves and Log Center sends a resolution notification.
Review metric definitions and trends on the Metrics Dashboard. Create alerts from the metrics listed on the Metrics tab. The beta catalog doesn't include every dashboard metric. Embedded CDN (eCDN) metrics stay on the dashboard.
Each alert uses one metric and one rule from the catalog. A rule is the condition for that metric, such as a value above the threshold. For a metric family that supports filters, such as Open Commerce API (OCAPI), you can limit the alert to selected values. Leave a filter empty to alert on the combined value for that metric.
Metric Families in the Beta Catalog
The Metrics tab lists the metrics you can select in each family.
| Metric Family | Examples |
|---|---|
| Overall Application | Total platform requests, storefront requests, sessions, response time, emails sent, and system workload. |
| Sales | Orders, basket creations, and basket updates. |
| Third Party Service | Call volume, 95th-percentile call duration, and remote exceptions. |
| OCAPI | Call volume, average duration, and errors. Some OCAPI metrics include Category and API filters. |
| B2C Commerce API (SCAPI) | Calls, request latency, response counts by status code, and cache-hit statistics. |
| SCAPI Hooks | Hook execution times and hook errors. |
| Managed Runtime | Request count, cache hits, error rate, server-side rendering invocations, and request time. |
| Controller | Pipeline execution volume and average duration. |
Notification Channels
Enter up to five email addresses on the alert. For Slack, PagerDuty, and Microsoft Teams, select a notification configuration that you already created. Log alerts, anomaly detection, and metric alerts share those configurations.
A notification configuration applies to one or more realms. An alert can use that configuration only when the configuration includes every realm selected on the alert.
The same Log Center roles that can create a log or anomaly alert can create a metric alert, and only for the realms that the role can access. See Access Control for Log Center Alerts.
A metric alert doesn't count toward the limit of 50 log-based alerts.
To create an alert, see Create a Metric Alert in Log Center.
- Create a Metric Alert in Log Center
Notify your team when a supported B2C Commerce metric crosses a warning or critical threshold.
