0

I can see the BGP metric I want to monitor in Azure but if I try to create an alert, there are no options for metrics after selecting the resource.

Here is an example of the metric: screenshot1

After selecting the virtual hub as the scope, these are the only signals available to select: screenshot2

Any suggestion as to why no metrics can be selected?

Thanks!

Edit: When creating a custom log, I also encounter this error: enter image description here

rev_it_up
  • 75
  • 2
  • 11

1 Answers1

1

I tried to reproduce the same in my environment and got the results like below:

I have created virtual WAN with Hub like below:

enter image description here

Created BGP peer:

enter image description here

In metrics:

enter image description here

To alert your BGP you can use kusto query in custom log search like below:

AzureMetrics
| where MetricName == "BGPAvailability"
| summarize by Average, bin(TimeGenerated, 5m), Resource
| render timechart

enter image description here

enter image description here

Alert has been triggered successfully like below:

enter image description here

Refer this github link to more in detail:

Additionally, You can use condition of All administrative operation like below

enter image description here

Imran
  • 3,875
  • 2
  • 3
  • 12
  • Thank you for your detailed reply. Interestingly, I encounter this error when I try to create the Custom Log Search: "BadArgumentError- 'where' operator: Failed to resolve table or column expression named 'AzureMetrics'" – rev_it_up Mar 15 '23 at 13:44
  • 1
    I am encountering an error with the way you described. I'll upvote your replies for the effort but I can't mark it as resolved yet as the error persists. I am starting to suspect a RBAC issue... – rev_it_up Mar 15 '23 at 13:51