Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
This article describes how Azure Communication Services Calling customers set-up monitoring and alerting for their calls. Follow these steps to ensure a smooth and effective setup process.
Prerequisite: enable call logging and diagnostics
Before configuring monitoring, ensure that call logging and diagnostics are enabled for your Direct Routing setup. This process involves configuring Azure Communication Services to collect call data. For detailed instructions, see Enable Azure Monitor.
Step-by-step instructions
Access the monitoring dashboard
- In the Azure portal, navigate to your Azure Communication Service Resource group.
- On the navigation blade, click Monitoring and then click Logs.
- In the query editor, enter a Kusto Query Language (KQL) for what you want to monitor. The following sample query checks for call failure rates aggregated per hour and filters the results to show only where the failure rate exceeds 10%:
ACSCallSummary | summarize UnsuccessfulCalls = countif(ParticipantEndReason != 0), TotalCalls = count() by bin(TimeGenerated, 1h) | extend FailureRate = (UnsuccessfulCalls * 100.0) / TotalCalls | where FailureRate > 10
Configure alerts
On the navigation blade, click Monitoring and then click Alerts.
Click Create alert rule.
For Signal name, select Custom log search.
For Search query, provide the query you ran in the previous section.
Provide measurement criteria, for example:
- Measure: FailureRate
- Aggregation Type: Total
- Aggregation granularity: 1 hour
Adjust the alert logic to suit your requirements. When complete, click Next: Actions when done.
Create action group
- From the Actions screen, click Create Action Group.
- Select your Subscription, Resource group, and Region.
- Provide an Action group name and Display name, then click Next: Notifications.
Set up notifications
Choose how you want to be notified. When complete, click Review + create, and wait for your alert rule to be created.
When complete, click Next: Details.
Provide more details as shown in the following screen.
Click Review + create.
Congratulations, you can now monitor your Azure Communication Services calling!
A sample email alert looks like this when triggered: Email Alert.