Skip to content

Commit 2527ebf

Browse files
committed
finalizing
1 parent a294faa commit 2527ebf

21 files changed

+164
-146
lines changed

.openpublishing.redirection.azure-monitor.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6691,7 +6691,7 @@
66916691
},
66926692
{
66936693
"source_path_from_root": "/articles/azure-monitor/essentials/remote-write-prometheus.md",
6694-
"redirect_url": "/azure/azure-monitor/essentials/self-managed-prometheus-remote-write",
6694+
"redirect_url": "/azure/azure-monitor/essentials/prometheus-remote-write-virtual-machines",
66956695
"redirect_document_id": false
66966696
},
66976697
{

articles/azure-monitor/containers/prometheus-remote-write-active-directory.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ description: Learn how to set up remote write in Azure Monitor managed service f
44
author: EdB-MSFT
55
ms.topic: conceptual
66
ms.custom: devx-track-azurecli
7-
ms.date: 2/28/2024
7+
ms.date: 4/18/2024
88
---
99

1010
# Send Prometheus data to Azure Monitor by using Microsoft Entra authentication
@@ -167,9 +167,9 @@ This step is required only if you didn't turn on Azure Key Vault Provider for Se
167167
168168
## Verification and troubleshooting
169169
170-
For verification and troubleshooting information, see [Azure Monitor managed service for Prometheus remote write](prometheus-remote-write.md#verify-remote-write-is-working-correctly).
170+
For verification and troubleshooting information, see [Troubleshooting remote write](articles/azure-monitor/containers/prometheus-remote-write-troubleshooting) and [Azure Monitor managed service for Prometheus remote write](prometheus-remote-write.md#verify-remote-write-is-working-correctly).
171171
172-
## Related content
172+
## Next steps
173173
174174
- [Collect Prometheus metrics from an AKS cluster](../containers/kubernetes-monitoring-enable.md#enable-prometheus-and-grafana)
175175
- [Learn more about Azure Monitor managed service for Prometheus](../essentials/prometheus-metrics-overview.md)

articles/azure-monitor/containers/prometheus-remote-write-azure-ad-pod-identity.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ description: Learn how to set up remote write for Azure Monitor managed service
44
author: EdB-MSFT
55
ms.author: edbaynash
66
ms.topic: conceptual
7-
ms.date: 05/11/2023
7+
ms.date: 4/18/2024
88
ms.reviewer: rapadman
99
---
1010

@@ -100,9 +100,9 @@ The `aadpodidbinding` label must be added to the Prometheus pod for the pod-mana
100100

101101
## Verification and troubleshooting
102102

103-
For verification and troubleshooting information, see [Azure Monitor managed service for Prometheus remote write](prometheus-remote-write.md#verify-remote-write-is-working-correctly).
103+
For verification and troubleshooting information, see [Troubleshooting remote write](articles/azure-monitor/containers/prometheus-remote-write-troubleshooting) and [Azure Monitor managed service for Prometheus remote write](prometheus-remote-write.md#verify-remote-write-is-working-correctly).
104104

105-
## Related content
105+
## Next steps
106106

107107
- [Collect Prometheus metrics from an AKS cluster](../containers/kubernetes-monitoring-enable.md#enable-prometheus-and-grafana)
108108
- [Learn more about Azure Monitor managed service for Prometheus](../essentials/prometheus-metrics-overview.md)

articles/azure-monitor/containers/prometheus-remote-write-azure-workload-identity.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ services: azure-monitor
66
ms.author: edbaynash
77
ms.topic: conceptual
88
ms.custom: devx-track-azurecli
9-
ms.date: 09/10/2023
9+
ms.date: 4/18/2024
1010
ms.reviewer: rapadman
1111
---
1212

@@ -179,9 +179,9 @@ az ad app federated-credential create --id ${APPLICATION_OBJECT_ID} --parameters
179179
180180
## Verification and troubleshooting
181181
182-
For verification and troubleshooting information, see [Azure Monitor managed service for Prometheus remote write](prometheus-remote-write.md#verify-remote-write-is-working-correctly).
182+
For verification and troubleshooting information, see [Troubleshooting remote write](articles/azure-monitor/containers/prometheus-remote-write-troubleshooting) and [Azure Monitor managed service for Prometheus remote write](prometheus-remote-write.md#verify-remote-write-is-working-correctly).
183183
184-
## Related content
184+
## Next steps
185185
186186
- [Collect Prometheus metrics from an AKS cluster](../containers/kubernetes-monitoring-enable.md#enable-prometheus-and-grafana)
187187
- [Learn more about Azure Monitor managed service for Prometheus](../essentials/prometheus-metrics-overview.md)

articles/azure-monitor/containers/prometheus-remote-write-managed-identity.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ title: Set up Prometheus remote write by using managed identity authentication
33
description: Learn how to set up remote write in Azure Monitor managed service for Prometheus. Use managed identity authentication to send data from a self-managed Prometheus server running in your Azure Kubernetes Server (AKS) cluster or Azure Arc-enabled Kubernetes cluster.
44
author: EdB-MSFT
55
ms.topic: conceptual
6-
ms.date: 2/28/2024
6+
ms.date: 4/18/2024
77
---
88

99
# Send Prometheus data to Azure Monitor by using managed identity authentication
@@ -131,9 +131,9 @@ This step isn't required if you're using an AKS identity. An AKS identity alread
131131
132132
## Verification and troubleshooting
133133
134-
For verification and troubleshooting information, see [Azure Monitor managed service for Prometheus remote write](prometheus-remote-write.md#verify-remote-write-is-working-correctly).
134+
For verification and troubleshooting information, see [Troubleshooting remote write](articles/azure-monitor/containers/prometheus-remote-write-troubleshooting) and [Azure Monitor managed service for Prometheus remote write](prometheus-remote-write.md#verify-remote-write-is-working-correctly).
135135
136-
## Related content
136+
## Next steps
137137
138138
- [Collect Prometheus metrics from an AKS cluster](../containers/kubernetes-monitoring-enable.md#enable-prometheus-and-grafana)
139139
- [Learn more about Azure Monitor managed service for Prometheus](../essentials/prometheus-metrics-overview.md)
Lines changed: 47 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,47 @@
1+
---
2+
title: Troubleshooting Remote-write in Azure Monitor Managed Service for Prometheus
3+
description: Describes how to troubleshoot remote-write in Azure Monitor Managed Service for Prometheus
4+
author: EdB-MSFT
5+
ms.service: azure-monitor
6+
ms.subservice: essentials
7+
ms-author: edbaynash
8+
ms.topic: conceptual
9+
ms.date: 4/18/2024
10+
11+
# customer intent: As a user of Azure Monitor Managed Service for Prometheus, I want to troubleshoot remote-write issues so that I can ensure that my data is flowing correctly.
12+
---
13+
14+
# Troubleshoot remote write
15+
16+
## HTTP 403 error in the Prometheus log
17+
18+
It takes about 30 minutes for the assignment of the role to take effect. During this time, you may see an HTTP 403 error in the Prometheus log. Check that you have configured the managed identity or Microsoft Entra ID application correctly with the `Monitoring Metrics Publisher` role on the workspace's data collection rule. If the configuration is correct, wait 30 minutes for the role assignment to take effect.
19+
20+
21+
## No Kubernetes data is flowing
22+
23+
If remote data isn't flowing, run the following command to find errors in the remote write container.
24+
25+
```azurecli
26+
kubectl --namespace <Namespace> describe pod <Prometheus-Pod-Name>
27+
```
28+
29+
30+
## Container restarts repeatedly
31+
32+
A container regularly restarting is likely due to misconfiguration of the container. Run the following command to view the configuration values set for the container. Verify the configuration values especially `AZURE_CLIENT_ID` and `IDENTITY_TYPE`.
33+
34+
```azureccli
35+
kubectl get pod <Prometheus-Pod-Name> -o json | jq -c '.spec.containers[] | select( .name | contains("<Azure-Monitor-Side-Car-Container-Name>"))'
36+
```
37+
38+
The output from this command has the following format:
39+
40+
```
41+
{"env":[{"name":"INGESTION_URL","value":"https://my-azure-monitor-workspace.eastus2-1.metrics.ingest.monitor.azure.com/dataCollectionRules/dcr-00000000000000000/streams/Microsoft-PrometheusMetrics/api/v1/write?api-version=2021-11-01-preview"},{"name":"LISTENING_PORT","value":"8081"},{"name":"IDENTITY_TYPE","value":"userAssigned"},{"name":"AZURE_CLIENT_ID","value":"00000000-0000-0000-0000-00000000000"}],"image":"mcr.microsoft.com/azuremonitor/prometheus/promdev/prom-remotewrite:prom-remotewrite-20221012.2","imagePullPolicy":"Always","name":"prom-remotewrite","ports":[{"containerPort":8081,"name":"rw-port","protocol":"TCP"}],"resources":{},"terminationMessagePath":"/dev/termination-log","terminationMessagePolicy":"File","volumeMounts":[{"mountPath":"/var/run/secrets/kubernetes.io/serviceaccount","name":"kube-api-access-vbr9d","readOnly":true}]}
42+
```
43+
44+
45+
## Ingestion quotas and limits
46+
47+
When configuring Prometheus remote write to send data to an Azure Monitor workspace, you typically begin by using the remote write endpoint displayed on the Azure Monitor workspace overview page. This endpoint involves a system-generated Data Collection Rule (DCR) and Data Collection Endpoint (DCE). These resources have ingestion limits. For more information on ingestion limits, see [Azure Monitor service limits](../service-limits.md#prometheus-metrics). When setting up remote write for multiple clusters sending data to the same endpoint, you might reach these limits. Consider creating additional DCRs and DCEs to distribute the ingestion load across multiple endpoints. This approach helps optimize performance and ensures efficient data handling. For more information about creating DCRs and DCEs, see [how to create custom Data collection endpoint(DCE) and custom Data collection rule(DCR) for an existing Azure monitor workspace(AMW) to ingest Prometheus metrics](https://aka.ms/prometheus/remotewrite/dcrartifacts).

0 commit comments

Comments
 (0)