Skip to content

Commit 66c82a9

Browse files
authored
Merge pull request #233141 from guywi-ms/law-sli-slo
Update log-analytics-workspace-health.md
2 parents 6677542 + ea040c5 commit 66c82a9

File tree

1 file changed

+29
-7
lines changed

1 file changed

+29
-7
lines changed

articles/azure-monitor/logs/log-analytics-workspace-health.md

Lines changed: 29 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ ms.date: 02/07/2023
1212

1313
# Monitor Log Analytics workspace health
1414

15-
[Azure Service Health](../../service-health/overview.md) monitors the health of your cloud resources, including Log Analytics workspaces. When a Log Analytics workspace is healthy, data you collect from resources in your IT environment is available for querying and analysis in a relatively short period of time, known as [latency](../logs/data-ingestion-time.md). This article explains how to view the health status of your Log Analytics workspace and set up alerts to track Log Analytics workspace health status changes.
15+
[Azure Service Health](../../service-health/overview.md) monitors the health of your cloud resources, including Log Analytics workspaces. When a Log Analytics workspace is healthy, data you collect from resources in your IT environment is available for querying and analysis in a relatively short period of time, known as [latency](../logs/data-ingestion-time.md). This article explains how to view the health status of your Log Analytics workspace, set up workspace health status alerts, and view workspace health metrics.
1616

1717
Azure Service Health monitors:
1818

@@ -39,22 +39,41 @@ To view your Log Analytics workspace health and set up health status alerts:
3939

4040
1. To set up health status alerts, you can either [enable recommended out-of-the-box alert](../alerts/alerts-overview.md#recommended-alert-rules) rules, or manually create new alert rules.
4141
- To enable the recommended alert rules:
42-
1. select **Alerts**, then select **Enable recommended alert rules**. The **Enable recommended alert rules** pane opens with a list of recommended alert rules based on your type of resource.
43-
1. In the **Alert me if** section, select all of the rules you want to enable. The rules are populated with the default values for the rule condition, you can change the default values if you would like.
44-
1. In the **Notify me by** section, select the way you want to be notified if an alert is fired.
42+
1. Select **Alerts** > **Enable recommended alert rules**.
43+
44+
The **Enable recommended alert rules** pane opens with a list of recommended alert rules for your Log Analytics workspace.
45+
46+
:::image type="content" source="../alerts/media/alerts-managing-alert-instances/alerts-enable-recommended-alert-rule-pane.png" alt-text="Screenshot of recommended alert rules pane.":::
47+
48+
1. In the **Alert me if** section, select all of the rules you want to enable.
49+
1. In the **Notify me by** section, select the way you want to be notified if an alert is triggered.
4550
1. Select **Use an existing action group**, and enter the details of the existing action group if you want to use an action group that already exists.
4651
1. Select **Enable**.
4752

48-
:::image type="content" source="../alerts/media/alerts-managing-alert-instances/alerts-enable-recommended-alert-rule-pane.png" alt-text="Screenshot of recommended alert rules pane.":::
49-
5053
- To create a new alert rule:
5154
1. Select **Add resource health alert**.
5255

53-
The **Create alert rule** wizard opens, with the **Scope** and **Condition** panes pre-populated. By default, the rule triggers alerts all status changes in all Log Analytics workspaces in the subscription. If necessary, you can edit and modify the scope and condition at this stage.
56+
The **Create alert rule** wizard opens, with the **Scope** and **Condition** panes prepopulated. By default, the rule triggers alerts all status changes in all Log Analytics workspaces in the subscription. If necessary, you can edit and modify the scope and condition at this stage.
5457

5558
:::image type="content" source="media/data-ingestion-time/log-analytics-workspace-latency-alert-rule.png" lightbox="media/data-ingestion-time/log-analytics-workspace-latency-alert-rule.png" alt-text="Screenshot that shows the Create alert rule wizard for Log Analytics workspace latency issues.":::
5659

5760
1. Follow the rest of the steps in [Create a new alert rule in the Azure portal](../alerts/alerts-create-new-alert-rule.md#create-a-new-alert-rule-in-the-azure-portal).
61+
62+
## View Log Analytics workspace health metrics
63+
64+
Azure Monitor exposes a set of metrics that provide insight into Log Analytics workspace health.
65+
66+
To view Log Analytics workspace health metrics:
67+
68+
1. Select **Metrics** from the Log Analytics workspace menu. This opens [Metrics Explorer](../essentials/metrics-charts.md) in context of your Log Analytics workspace.
69+
1. In the **Metric** field, select one of the Log Analytics workspace health metrics:
70+
71+
| Metric name | Description |
72+
| - | - |
73+
| Query count | Total number of user queries in the Log Analytics workspace within the selected time range.<br>This number includes only user-initiated queries, and doesn't include queries initiated by Sentinel rules and alert-related queries. |
74+
| Query failure count | Total number of failed user queries in the Log Analytics workspace within the selected time range.<br>This number includes all queries that return 5XX response codes - except 504 *Gateway Timeout* - which indicate an error related to the application gateway or the backend server.|
75+
| Query success rate | Total number of successful user queries in the Log Analytics workspace within the selected time range.<br>This number includes all queries that return 2XX, 4XX, and 504 response codes; in other words, all user queries that don't result in a service error. |
76+
5877
## Investigate Log Analytics workspace health issues
5978

6079
To investigate Log Analytics workspace health issues:
@@ -63,6 +82,9 @@ To investigate Log Analytics workspace health issues:
6382
- Query the data in your Log Analytics workspace to [understand which factors are contributing greater than expected latency in your workspace](../logs/data-ingestion-time.md).
6483
- [Use the `_LogOperation` function to view and set up alerts about operational issues](../logs/monitor-workspace.md) logged in your Log Analytics workspace.
6584

85+
86+
87+
6688
## Next steps
6789

6890
Learn more about:

0 commit comments

Comments
 (0)