You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: articles/applied-ai-services/metrics-advisor/how-tos/configure-metrics.md
+82-22Lines changed: 82 additions & 22 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -8,31 +8,94 @@ manager: nitinme
8
8
ms.service: applied-ai-services
9
9
ms.subservice: metrics-advisor
10
10
ms.topic: how-to
11
-
ms.date: 09/10/2020
11
+
ms.date: 05/12/2022
12
12
ms.author: mbullwin
13
13
---
14
14
15
-
# How to: Configure metrics and fine tune detection configuration
15
+
# Configure metrics and fine tune detection configuration
16
16
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.
18
22
19
23
:::image type="content" source="../media/metrics/select-metric.png" alt-text="Select a metric" lightbox="../media/metrics/select-metric.png":::
20
24
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 dropdown 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.
22
26
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.
24
28
25
29
You can also select time ranges, and change the layout of the page.
26
30
27
31
> [!NOTE]
28
32
> - The start time is inclusive.
29
-
> - The end time is exclusive.
33
+
> - The end time is exclusive.
30
34
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).
32
36
33
37
## Tune the detection configuration
34
38
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.
36
99
37
100
### Tune the configuration for all series in current metric
38
101
@@ -44,7 +107,7 @@ There are additional parameters like **Direction**, and **Valid anomaly** that c
44
107
45
108
### Tune the configuration for a specific series or group
46
109
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.
48
111
49
112
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.
50
113
@@ -78,7 +141,7 @@ When the sensitivity is turned down, the expected value range will be wider, and
78
141
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:
79
142
80
143
* 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.
82
145
83
146
Use the following steps to use this mode:
84
147
@@ -111,8 +174,8 @@ Sometimes, expected events and occurrences (such as holidays) can generate anoma
111
174
> [!Note]
112
175
> 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.
113
176
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.
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:
126
189
127
190
|Option |Description |
128
191
|---------|---------|
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. |
130
193
|**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. |
131
194
|**Holiday options**| Whether to take into account all holidays, only PTO (Paid Time Off) holidays, or only Non-PTO holidays. |
132
195
|**Days to expand**| The impacted days before and after a holiday. |
133
196
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:
134
198
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).
136
201
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
-
140
202
Not all options are selectable for every granularity. The available options per granularity are below (✔ for available, X for unavailable):
141
203
142
204
| Granularity | YoY | MoM | WoW | DoD |
@@ -150,7 +212,6 @@ Not all options are selectable for every granularity. The available options per
150
212
| Secondly | X | X | X | X |
151
213
| Custom*| ✔ | ✔ | ✔ | ✔ |
152
214
153
-
154
215
When using a custom granularity in seconds, only available if the metric is longer than one hour and less than one day.
155
216
156
217
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
159
220
160
221
## View recent incidents
161
222
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.
163
224
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.
165
226
166
227
## Subscribe anomalies for notification
167
228
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.
170
230
171
231
## Next steps
172
232
-[Configure alerts and get notifications using a hook](alerts.md)
0 commit comments