Skip to content

Commit d958517

Browse files
authored
Add clarification for alerting on custom metrics
The custom metric should already be reported, because it's not possible to define an alert rule on a non-existent custom metric
1 parent 3696530 commit d958517

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

articles/azure-monitor/platform/alerts-metric-create-templates.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ author: harelbr
55
services: azure-monitor
66
ms.service: azure-monitor
77
ms.topic: conceptual
8-
ms.date: 2/17/2020
8+
ms.date: 2/24/2020
99
ms.author: harelbr
1010
ms.subservice: alerts
1111
---
@@ -1245,7 +1245,7 @@ You can use the following template to create a more advanced static threshold me
12451245

12461246
To learn more about custom metrics in Azure Monitor, see [Custom metrics in Azure Monitor](https://docs.microsoft.com/azure/azure-monitor/platform/metrics-custom-overview).
12471247

1248-
When creating an alert rule on a custom metric, you need to specify both the metric name and the metric namespace.
1248+
When creating an alert rule on a custom metric, you need to specify both the metric name and the metric namespace. You should also make sure that the custom metric is already being reported, as you cannot create an alert rule on a custom metric that doesn't yet exist.
12491249

12501250
Save the json below as customstaticmetricalert.json for the purpose of this walkthrough.
12511251

0 commit comments

Comments
 (0)