Skip to content

Commit 4ba89d8

Browse files
Merge pull request #198077 from mrbullwinkle/mrb_05_12_2022_ma
[Applied AI] [Metrics Advisor] auto-tuning
2 parents 5b64c85 + 477bbee commit 4ba89d8

File tree

7 files changed

+97
-22
lines changed

7 files changed

+97
-22
lines changed

articles/applied-ai-services/metrics-advisor/how-tos/configure-metrics.md

Lines changed: 82 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -8,31 +8,94 @@ manager: nitinme
88
ms.service: applied-ai-services
99
ms.subservice: metrics-advisor
1010
ms.topic: how-to
11-
ms.date: 09/10/2020
11+
ms.date: 05/12/2022
1212
ms.author: mbullwin
1313
---
1414

15-
# How to: Configure metrics and fine tune detection configuration
15+
# Configure metrics and fine tune detection configuration
1616

17-
Use this article to start configuring your Metrics Advisor instance using the web portal. To browse the metrics for a specific data feed, go to the **Data feeds** page and select one of the feeds. This will display a list of metrics associated with it.
17+
Use this article to start configuring your Metrics Advisor instance using the web portal and fine-tune the anomaly detection results.
18+
19+
## Metrics
20+
21+
To browse the metrics for a specific data feed, go to the **Data feeds** page and select one of the feeds. This will display a list of metrics associated with it.
1822

1923
:::image type="content" source="../media/metrics/select-metric.png" alt-text="Select a metric" lightbox="../media/metrics/select-metric.png":::
2024

21-
Select one of the metric names to see its details. In this detailed view, you can switch to another metric in the same data feed using the drop down list in the top right corner of the screen.
25+
Select one of the metric names to see its details. In this view, you can switch to another metric in the same data feed using the drop-down list in the top right corner of the screen.
2226

23-
When you first view a metric's details, you can load a time series by letting Metrics Advisor choose one for you, or by specifying values to be included for each dimension.
27+
When you first view a metric's details, you can load a time series by letting Metrics Advisor choose one for you, or by specifying values to be included for each dimension.
2428

2529
You can also select time ranges, and change the layout of the page.
2630

2731
> [!NOTE]
2832
> - The start time is inclusive.
29-
> - The end time is exclusive.
33+
> - The end time is exclusive.
3034
31-
You can click the **Incidents** tab to view anomalies, and find a link to the [Incident hub](diagnose-an-incident.md).
35+
You can select the **Incidents** tab to view anomalies, and find a link to the [Incident hub](diagnose-an-incident.md).
3236

3337
## Tune the detection configuration
3438

35-
A metric can apply one or more detection configurations. There is a default configuration for each metric, which you can edit or add to, according to your monitoring needs.
39+
A metric can apply one or more detection configurations. There's a default configuration for each metric, which you can edit or add to, according to your monitoring needs.
40+
41+
### Detection configuration auto-tuning based on anomaly preference
42+
43+
Detection configuration auto-tuning is a new feature released in Metrics Advisor, to help address the following scenarios:
44+
45+
- Depending on the use case, certain types of anomalies may be of more significant interest. Sometimes you may be interested in sudden spikes or dips, but other cases, spikes/dips or transient anomalies aren't critical. Previously it was hard to distinguish the configuration for different anomaly types. The new auto-tuning feature makes this distinction between anomaly types possible. As of now, there are five supported anomaly patterns:
46+
* Spike
47+
* Dip
48+
* Increase
49+
* Decrease
50+
* Steady
51+
52+
- Sometimes, there may be many dimensions within one metric, which will split the metric into hundreds, thousands, or even more time series to be monitored. However, often some of these dimensions aren't equally important. Take revenue as an example, the number for small regions or a niche product category might be quite small and therefore also not that stable. But at the same time not necessarily critical. The new auto-tuning feature has made it possible to fine tune configuration based on series value range.
53+
54+
This allows you to not have to spend as much effort fine tuning your configuration again and again, and also reduces alert noise.
55+
56+
> [!NOTE]
57+
> The auto-tuning feature is only applied on the 'Smart detection' method.
58+
59+
#### Prerequisite for triggering auto-tuning
60+
61+
After the metrics are onboarded to Metrics Advisor, the system will try to perform statistics on the metrics to categorize **anomaly pattern** types and **series value** distribution. By providing this functionality, you can further fine tune the configuration based on their specific preferences. At the beginning, it will show a status of **Initializing**.
62+
63+
:::image type="content" source="../media/metrics/autotuning-initializing.png" alt-text="Screenshot of Metrics Advisor U I with Initializing auto-tuning text visible." lightbox="../media/metrics/autotuning-initializing.png":::
64+
65+
#### Choose to enable auto-tuning on anomaly pattern and series value
66+
67+
The feature enables you to tune detection configuration from two perspectives **anomaly pattern** and **series value**. Based on your specific use case, you can choose which one to enabled or enable both.
68+
69+
- For the **anomaly pattern** option, the system will list out different anomaly patterns that were observed with the metric. You can choose which ones you're interested in and select them, the unselected patterns will have their sensitivity **reduced** by default.
70+
71+
- For the **series value** option, your selection will depend on your specific use case. You'll have to decide if you want to use a higher sensitivity for series with higher values, and decrease sensitivity on low value ones, or vice versa. Then check the checkbox.
72+
73+
:::image type="content" source="../media/metrics/autotuning-preference.png" alt-text="Screenshot with a toggle button for apply pattern preference and apply value preference selected." lightbox="../media/metrics/autotuning-preference.png":::
74+
75+
#### Tune the configuration for selected anomaly patterns
76+
77+
If specific anomaly patterns are chosen, the next step is to fine tune the configuration for each. There's a global **sensitivity** that is applied for all series. For each anomaly pattern, you can tune the **adjustment**, which is based on the global **sensitivity**.
78+
79+
You must tune each anomaly pattern that has been chosen individually.
80+
81+
:::image type="content" source="../media/metrics/autotuning-pattern.png" alt-text="Screenshot of auto-tuning pattern U I within Metrics Advisor." lightbox="../media/metrics/autotuning-pattern.png":::
82+
83+
#### Tune the configuration for each series value group
84+
85+
After the system generates statistics on all time series within the metric, several series value groups are created automatically. As described above, you can fine tune the **adjustment** for each series value group according to your specific business needs.
86+
87+
There will be a default adjustment configured to get the best detection results, but it can be further tuned.
88+
89+
:::image type="content" source="../media/metrics/autotuning-value.png" alt-text="Screenshot of pattern based sensitivity U I with adjustment for anomaly patterns, spike -30 highlighted on a slider with a range from -100 to 100." lightbox="../media/metrics/autotuning-value.png":::
90+
91+
#### Set up alert rules
92+
93+
Even once the detection configuration on capturing valid anomalies is tuned, it's still important to input **alert
94+
rules** to make sure the final alert rules can meet eventual business needs. There are a number of rules that can be set, like **filter rules** or **snooze continuous alert rules**.
95+
96+
:::image type="content" source="../media/metrics/autotuning-alert.png" alt-text="Screenshot of setup alert rules UI within Metrics Advisor product." lightbox="../media/metrics/autotuning-alert.png":::
97+
98+
After configuring all the settings described in the section above, the system will orchestrate them together and automatically detect anomalies based on your inputted preferences. The goal is to get the best configuration that works for each metric, which can be achieved much easier through use of the new **auto-tuning** capability.
3699

37100
### Tune the configuration for all series in current metric
38101

@@ -44,7 +107,7 @@ There are additional parameters like **Direction**, and **Valid anomaly** that c
44107

45108
### Tune the configuration for a specific series or group
46109

47-
Click **Advanced configuration** below the metric level configuration options to see the group level configuration.You can add a configuration for an individual series, or group of series by clicking the **+** icon in this window. The parameters are similar to the metric-level configuration parameters, but you may need to specify at least one dimension value for a group-level configuration to identify a group of series. And specify all dimension values for series-level configuration to identify a specific series.
110+
Select **Advanced configuration** below the metric level configuration options to see the group level configuration.You can add a configuration for an individual series, or group of series by clicking the **+** icon in this window. The parameters are similar to the metric-level configuration parameters, but you may need to specify at least one dimension value for a group-level configuration to identify a group of series. And specify all dimension values for series-level configuration to identify a specific series.
48111

49112
This configuration will be applied to the group of series or specific series instead of the metric level configuration. After setting the conditions for this group, save it.
50113

@@ -78,7 +141,7 @@ When the sensitivity is turned down, the expected value range will be wider, and
78141
Change threshold is normally used when metric data generally stays around a certain range. The threshold is set according to **Change percentage**. The **Change threshold** mode is able to detect anomalies in the scenarios:
79142

80143
* Your data is normally stable and smooth. You want to be notified when there are fluctuations.
81-
* Your data is normally quite unstable and fluctuates a lot. You want to be notified when it becomes too stable or flat.
144+
* Your data is normally unstable and fluctuates a lot. You want to be notified when it becomes too stable or flat.
82145

83146
Use the following steps to use this mode:
84147

@@ -111,8 +174,8 @@ Sometimes, expected events and occurrences (such as holidays) can generate anoma
111174
> [!Note]
112175
> Preset event configuration will take holidays into consideration during anomaly detection, and may change your results. It will be applied to the data points ingested after you save the configuration.
113176
114-
Click the **Configure Preset Event** button next to the metrics drop-down list on each metric details page.
115-
177+
Select the **Configure Preset Event** button next to the metrics drop-down list on each metric details page.
178+
116179
:::image type="content" source="../media/metrics/preset-event-button.png" alt-text="preset event button":::
117180

118181
In the window that appears, configure the options according to your usage. Make sure **Enable holiday event** is selected to use the configuration.
@@ -126,17 +189,16 @@ There are several other values you can configure:
126189

127190
|Option |Description |
128191
|---------|---------|
129-
|**Choose one dimension as country** | Choose a dimension that contains country information. For example a country code. |
192+
|**Choose one dimension as country** | Choose a dimension that contains country information. For example, a country code. |
130193
|**Country code mapping** | The mapping between a standard [country code](https://wikipedia.org/wiki/ISO_3166-1_alpha-2), and chosen dimension's country data. |
131194
|**Holiday options** | Whether to take into account all holidays, only PTO (Paid Time Off) holidays, or only Non-PTO holidays. |
132195
|**Days to expand** | The impacted days before and after a holiday. |
133196

197+
The **Cycle event** section can be used in some scenarios to help reduce unnecessary alerts by using cyclic patterns in the data. For example:
134198

135-
The **Cycle event** section can be used in some scenarios to help reduce unnecessary alerts by using cyclic patterns in the data. For example:
199+
- Metrics that have multiple patterns or cycles, such as both a weekly and monthly pattern.
200+
- Metrics that don't have a clear pattern, but the data is comparable Year over Year (YoY), Month over Month (MoM), Week Over Week (WoW), or Day Over Day (DoD).
136201

137-
- Metrics that have multiple patterns or cycles, such as both a weekly and monthly pattern.
138-
- Metrics that do not have a clear pattern, but the data is comparable Year over Year (YoY), Month over Month (MoM), Week Over Week (WoW), or Day Over Day (DoD).
139-
140202
Not all options are selectable for every granularity. The available options per granularity are below (✔ for available, X for unavailable):
141203

142204
| Granularity | YoY | MoM | WoW | DoD |
@@ -150,7 +212,6 @@ Not all options are selectable for every granularity. The available options per
150212
| Secondly | X | X | X | X |
151213
| Custom* |||||
152214

153-
154215
When using a custom granularity in seconds, only available if the metric is longer than one hour and less than one day.
155216

156217
Cycle event is used to reduce anomalies if they follow a cyclic pattern, but it will report an anomaly if multiple data points don't follow the pattern. **Strict mode** is used to enable anomaly reporting if even one data point doesn't follow the pattern.
@@ -159,14 +220,13 @@ Cycle event is used to reduce anomalies if they follow a cyclic pattern, but it
159220

160221
## View recent incidents
161222

162-
Metrics Advisor detects anomalies on all your time series data as they're ingested. However, not all anomalies need to be escalated, because they might not have a big impact. Aggregation will be performed on anomalies to group related ones into incidents. You can view these incidents from the **Incident** tab in metrics details page.
223+
Metrics Advisor detects anomalies on all your time series data as they're ingested. However, not all anomalies need to be escalated, because they might not have a significant impact. Aggregation will be performed on anomalies to group related ones into incidents. You can view these incidents from the **Incident** tab in metrics details page.
163224

164-
Click on an incident to go to the **Incidents analysis** page where you can see more details about it. Click on **Manage incidents in new Incident hub**, to find the [Incident hub](diagnose-an-incident.md) page where you can find all incidents under the specific metric.
225+
Select an incident to go to the **Incidents analysis** page where you can see more details about it. Select **Manage incidents in new Incident hub**, to find the [Incident hub](diagnose-an-incident.md) page where you can find all incidents under the specific metric.
165226

166227
## Subscribe anomalies for notification
167228

168-
If you'd like to get notified whenever an anomaly is detected, you can subscribe to alerts for the metric, using a hook. See [Configure alerts and get notifications using a hook](alerts.md) for more information.
169-
229+
If you'd like to get notified whenever an anomaly is detected, you can subscribe to alerts for the metric, using a hook. For more information, see [configure alerts and get notifications using a hook](alerts.md) for more information.
170230

171231
## Next steps
172232
- [Configure alerts and get notifications using a hook](alerts.md)

articles/applied-ai-services/metrics-advisor/index.yml

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -78,3 +78,18 @@ landingContent:
7878
links:
7979
- text: Support and help options
8080
url: ../../cognitive-services/cognitive-services-support-options.md?context=/azure/cognitive-services/metrics-advisor/context/context
81+
82+
- title: Blog posts
83+
linkLists:
84+
- linkListType: reference
85+
links:
86+
- text: Introducing Metrics Advisor - A new Cognitive Service
87+
url: https://techcommunity.microsoft.com/t5/azure-ai/introducing-metrics-advisor-a-new-cognitive-service/ba-p/1668025
88+
- text: Protect your organization's growth by using Azure Metrics Advisor
89+
url: https://techcommunity.microsoft.com/t5/azure-ai/protect-your-organization-s-growth-by-using-azure-metrics/ba-p/2564682
90+
- text: Supply Chain Anomaly Detection and Root Cause Analysis with Azure Metric Advisor
91+
url: https://techcommunity.microsoft.com/t5/azure-ai/supply-chain-anomaly-detection-and-root-cause-analysis-with/ba-p/2871920
92+
- text: 'Customer support: How Azure Metrics Advisor can help improve customer satisfaction'
93+
url: https://techcommunity.microsoft.com/t5/azure-ai-blog/customer-support-how-azure-metrics-advisor-can-help-improve/ba-p/3038907
94+
- text: Detecting Methane Leaks using Azure Metrics Advisor
95+
url: https://techcommunity.microsoft.com/t5/ai-cognitive-services-blog/detecting-methane-leaks-using-azure-metrics-advisor/ba-p/3254005
46.5 KB
Loading
25.5 KB
Loading
76 KB
Loading
59.5 KB
Loading
72.1 KB
Loading

0 commit comments

Comments
 (0)