Friday, July 24, 2026
HomeC#Azure SRE Agent – configure an alert for remediation | The Finest...

Azure SRE Agent – configure an alert for remediation | The Finest C# Programmer In The World


As of writing this text the Azure SRE Agent is in preview launch.

After provisioning an Azure SRE Agent a standard exercise is to configure the Agent to watch and act upon an alert.  The Azure SRE Agent presently helps 3 incident platforms: Azure Monitor, PagerDuty, and ServiceNow, as proven in Determine 1.

Determine 1, Azure SRE Agent, Incident Administration, Incident platform

This text focuses on Azure Monitor.  To configure an Azure Monitor alert to wire up with the Azure SRE Agent navigate to the Azure useful resource you wish to monitor and choose the Alert, as seen in Determine 2.

image

Determine 2, Azure SRE Agent, Azure Monitor Alert configuration

Choose the Create alert rule button.  An instance Alert rule is proven in Determine 3, nonetheless the rule relies on the necessities of your utility.  This rule situation will set off an alert when there exists greater than 2 HTTP 4xx error standing codes in a 5 minute time window, the rule checks as soon as per minute.

image

Determine 3, Azure SRE Agent, Azure Monitor Alert configuration – Situation

For this easy instance there shall be no Motion group created.  As seen in Determine 4, add the small print to the alert rule.

image

Determine 4, Azure SRE Agent, Azure Monitor Alert configuration – Alert rule particulars

After a number of moments navigate again to the Azure SRE Agent and and examine, Determine 5, its inclusion into the Azure SRE Agent useful resource mapping actual realm.

image

Determine 5, Azure SRE Agent, Useful resource mapping, Azure Monitor, Alert guidelines

********************************************************************************************

NOTE: You should navigate to the Azure SRE Agent -> Incident administration -> Response plans and configure the quickstart_handler to watch All severity.

It’s presently defaults to Sev3, so solely Alerts with that degree can be actioned.

********************************************************************************************

When an HTTP 4xx standing code happens then the Alert is triggered, as seen in Determine 6.

image

Determine 6, Azure SRE Agent, Azure Monitor, Alert guidelines, HTTP 400

Navigate to the Azure SRE Agent and examine the acknowledged Azure Monitor Alert, Determine 7.

image

Determine 7, Azure SRE Agent, Incident administration, Azure Monitor, Alert

You possibly can then click on on the Alert title and examine the Agent carry out its evaluation.  As soon as the evaluation is full you may proceed to immediate the Azure SRE Agent about that particular alert, as seen in Determine 8.

image

Determine 8, Azure SRE Agent, Incident administration, Azure Monitor, Alert, Prompting

Listed below are a number of hyperlinks to details about configuring ServiceNow and PagerDuty.

RELATED ARTICLES

LEAVE A REPLY

Please enter your comment!
Please enter your name here

Most Popular

Recent Comments