Availability alerting for arc-enabled machine using HeartBeat does not work.

NIJSTEN Stephen 80 Reputation points
2024-01-25T14:10:31.0233333+00:00

Dear Microsoft community,

I want to configure an alert that fires when an arc-enabled machine has been down for 5m or longer. For this I use the heartbeat of the agent running on this arc-enabled machine. I wrote the following query for this:

Heartbeat| where _ResourceId has 'microsoft.hybridcompute'| summarize lastcall = max(TimeGenerated) by Computer, _ResourceId| where lastcall < ago(5m)

This query works when used in the log analytic workspace. But this doesn't trigger an alert when used in a alert rule.

Alert rule configuration:

Measurement

  • Measure: Table rows
  • Aggregation type: count
  • Aggregation granularity: 5 minutes

Split by dimensions

  • Resource ID column: _ResourceId

Alert logic

  • Operator: Greater than
  • Treshold value: 0
  • Frequency of evaluation: 5 minutes

Any idea why this doesn't trigger an alert?

Kind regards,

Stephen.

Azure Monitor
Azure Monitor
An Azure service that is used to collect, analyze, and act on telemetry data from Azure and on-premises environments.
2,858 questions
Azure Arc
Azure Arc
A Microsoft cloud service that enables deployment of Azure services across hybrid and multicloud environments.
337 questions
{count} votes