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/azure-monitor/essentials/prometheus-grafana.md
+19-17Lines changed: 19 additions & 17 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -80,13 +80,14 @@ Azure virtual machines support both system assigned and user assigned identity.
80
80
Use the following steps to allow access all Azure Monitor workspaces in a resource group or subscription:
81
81
82
82
1. Open the **Identity** page for your virtual machine in the Azure portal.
83
-
2. If **Status** is **No**, change it to **Yes**.
84
-
3. Click **Azure role assignments** to review the existing access in your subscription.
85
-
4. If **Monitoring Data Reader** is not listed for your subscription or resource group:
83
+
1. If **Status** is **No**, change it to **Yes**.
84
+
1. Click **Save**.
85
+
1. Click **Azure role assignments** to review the existing access in your subscription.
86
+
1. If **Monitoring Data Reader** is not listed for your subscription or resource group:
86
87
1. Click **+ Add role assignment**.
87
-
2. For **Scope**, select either **Subscription** or **Resource group**.
88
-
3. For **Role**, select **Monitoring Data Reader**.
89
-
4. Click **Save**.
88
+
1. For **Scope**, select either **Subscription** or **Resource group**.
89
+
1. For **Role**, select **Monitoring Data Reader**.
90
+
1. Click **Save**.
90
91
91
92
**Configure from Azure Monitor workspace**<br>
92
93
Use the following steps to allow access to only a specific Azure Monitor workspace:
@@ -110,16 +111,17 @@ Versions 9.x and greater of Grafana support Azure Authentication, but it's not e
110
111
111
112
1. Locate and open the *Grafana.ini* file on your virtual machine.
112
113
2. Under the `[auth]` section of the configuration file, change the `azure_auth_enabled` setting to `true`.
113
-
3. Open the **Overview** page for your Azure Monitor workspace in the Azure portal.
114
-
4. Copy the **Query endpoint**, which you'll need in a step below.
115
-
5. Open your Azure Managed Grafana workspace in the Azure portal.
116
-
6. Click on the **Endpoint** to view the Grafana workspace.
117
-
7. Select **Configuration** and then **Data source**.
118
-
8. Click **Add data source** and then **Prometheus**.
119
-
9. For **URL**, paste in the query endpoint for your Azure Monitor workspace.
120
-
10. Select **Azure Authentication** to turn it on.
121
-
11. For **Authentication** under **Azure Authentication**, select **Managed Identity**.
122
-
12. Scroll to the bottom of the page and click **Save & test**.
114
+
3. Under the `[azure]` section of the configuration file, change the `managed_identity_enabled` setting to `true`
115
+
4. Open the **Overview** page for your Azure Monitor workspace in the Azure portal.
116
+
5. Copy the **Query endpoint**, which you'll need in a step below.
117
+
6. Open your Azure Managed Grafana workspace in the Azure portal.
118
+
7. Click on the **Endpoint** to view the Grafana workspace.
119
+
8. Select **Configuration** and then **Data source**.
120
+
9. Click **Add data source** and then **Prometheus**.
121
+
10. For **URL**, paste in the query endpoint for your Azure Monitor workspace.
122
+
11. Select **Azure Authentication** to turn it on.
123
+
12. For **Authentication** under **Azure Authentication**, select **Managed Identity**.
124
+
13. Scroll to the bottom of the page and click **Save & test**.
123
125
124
126
:::image type="content" source="media/prometheus-grafana/prometheus-data-source.png" alt-text="Screenshot of configuration for Prometheus data source." lightbox="media/prometheus-grafana/prometheus-data-source.png":::
125
127
@@ -129,4 +131,4 @@ Versions 9.x and greater of Grafana support Azure Authentication, but it's not e
129
131
130
132
-[Collect Prometheus metrics for your AKS cluster](../essentials/prometheus-metrics-enable.md).
131
133
-[Configure Prometheus alerting and recording rules groups](prometheus-rule-groups.md).
132
-
-[Customize scraping of Prometheus metrics](prometheus-metrics-scrape-configuration.md).
134
+
-[Customize scraping of Prometheus metrics](prometheus-metrics-scrape-configuration.md).
0 commit comments