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-remote-write-virtual-machines.md
+14-8Lines changed: 14 additions & 8 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,14 +1,15 @@
1
1
---
2
-
title: Send Prometheus metrics from Virtual Machines to an Azure Monitor workspace
2
+
title: Send Prometheus metrics from virtual machines, scale sets, or Kubernetes clusters to an Azure Monitor workspace
3
3
description: How to configure remote-write to send data from self-managed Prometheus to an Azure Monitor managed service for Prometheus
4
-
author: bwren
4
+
author: EdB-MSFT
5
+
ms.author: edbaynash
5
6
ms.topic: conceptual
6
7
ms.custom: devx-track-azurecli
7
8
ms.date: 06/20/2024
8
9
#customer intent: As an azure administrator, I want to send Prometheus metrics from my self-managed Prometheus instance to an Azure Monitor workspace.
9
10
---
10
11
11
-
# Send Prometheus metrics from Virtual Machines to an Azure Monitor workspace
12
+
# Send Prometheus metrics from virtual machines, scale sets, or Kubernetes clusters to an Azure Monitor workspace
12
13
13
14
Prometheus isn't limited to monitoring Kubernetes clusters. Use Prometheus to monitor applications and services running on your servers, wherever they're running. For example, you can monitor applications running on Virtual Machines, Virtual Machine Scale Sets, or even on-premises servers. You can also send Prometheus metrics to an Azure Monitor workspace from your self-managed cluster and Prometheus server. Install prometheus on your servers and configure remote-write to send metrics to an Azure Monitor workspace.
14
15
@@ -19,16 +20,16 @@ This article explains how to configure remote-write to send data from a self-man
19
20
20
21
Self-managed Prometheus can run on Azure and non-Azure environments. The following are authentication options for remote-write to Azure Monitor workspace based on the environment where Prometheus is running.
21
22
22
-
## Azuremanaged Virtual Machines and Virtual Machine Scale Sets
Use user-assigned managed identity authentication for services running self managed Prometheus in an Azure environment. Azuremanaged services include:
25
+
Use user-assigned managed identity authentication for services running self managed Prometheus in an Azure environment. Azure-managed services include:
25
26
26
27
- Azure Virtual Machines
27
28
- Azure Virtual Machine Scale Sets
28
29
- Azure Arc-enabled Virtual Machines
29
30
- Azure Kubernetes Service (AKS)
30
31
31
-
To set up remote write for Azuremanaged resources, see [Remote-write using user-assigned managed identity](#remote-write-using-user-assigned-managed-identity-authentication).
32
+
To set up remote write for Azure-managed resources, see [Remote-write using user-assigned managed identity](#remote-write-using-user-assigned-managed-identity-authentication).
32
33
33
34
34
35
## Virtual machines and Kubernetes clusters running on non-Azure environments.
@@ -59,8 +60,11 @@ Depending on the environment where Prometheus is running, you can configure remo
59
60
Use the Azure portal or CLI to create a user-assigned managed identity or Microsoft Entra ID application.
60
61
61
62
### [Remote-write using user-assigned managed identity](#tab/managed-identity)
63
+
62
64
### Remote-write using user-assigned managed identity authentication
63
65
66
+
User-assigned managed identity authentication can be used in any Azure-managed environment. If your Prometheus service is running in a non-Azure environment, you can use Entra ID application authentication.
67
+
64
68
To configure a user-assigned managed identity for remote-write to Azure Monitor workspace, complete the following steps.
65
69
66
70
#### Create a user-assigned managed identity
@@ -104,7 +108,7 @@ On the workspace's data collection rule, assign the `Monitoring Metrics Publishe
104
108
1. Select **Add**.
105
109
1. Select the user assigned managed identity that you created, then select **Add**.
106
110
107
-
:::image type="content" source="media/prometheus-remote-write-virtual-machines/assign-user-identity.png" lightbox="media/prometheus-remote-write-virtual-machines/assign-user-identity.png" alt-text="A screenshot showing the Add user assigned managed identity page.":::
111
+
:::image type="content" source="media/prometheus-remote-write-virtual-machines/assign-user-identity.png" lightbox="media/prometheus-remote-write-virtual-machines/assign-user-identity.png" alt-text="A screenshot showing the add user assigned managed identity page.":::
108
112
109
113
#### Assign the managed identity for an Azure Kubernetes Service
110
114
@@ -118,6 +122,8 @@ For each Virtual Machine Scale Set in the resource group, assign the managed ide
118
122
### [Microsoft Entra ID application](#tab/entra-application)
119
123
### Remote-write using Microsoft Entra ID application authentication
120
124
125
+
Microsoft Entra ID application authentication can be used in any environment. If your Prometheus service is running in an Azure-managed environment consider using user-assigned managed identity authentication.
126
+
121
127
To configure remote-write to Azure Monitor workspace using a Microsoft Entra ID application, create an Entra application. On Azure Monitor workspace's data collection rule, assign the `Monitoring Metrics Publisher` role to the Entra application.
122
128
123
129
> [!NOTE]
@@ -351,7 +357,7 @@ For more information, see [Prometheus explorer](/azure/azure-monitor/essentials/
351
357
352
358
### Grafana
353
359
354
-
Use PromQL queries in Grafana to verify that the results return the expected data. See [getting Grafana setup with Managed Prometheus](../essentials/prometheus-grafana.md) to configure Grafana.
360
+
Use PromQL queries in Grafana to verify that the results return the expected data. To configure Grafana, see [getting Grafana setup with Managed Prometheus](../essentials/prometheus-grafana.md)
0 commit comments