An Azure service used to deploy Grafana dashboards for analytics and monitoring solutions.
Hello Schultz, Michael,
Thank you for reaching out to the Microsoft Q&A forum.
When investigated you’re hitting the fact that Azure Managed Grafana (AMG) in Azure Local (MOC/Azure Stack HCI) can’t “see” your on-prem Prometheus/Loki because:
- AMG resolves names via its internal kube-DNS (127.0.0.11), not your vNet-configured DNS
- Azure Private Link Service (PLS) isn’t available on Azure Stack HCI (so you can’t front your on-prem Prometheus service with a PLS and then create a “managed private endpoint” from AMG)
Officially, Microsoft supports two main patterns for getting on-prem Prometheus metrics into AMG:
• Push into Azure Monitor Managed Prometheus – Deploy the Azure Monitor for containers extension (with Prometheus scraping) on your AKS Arc cluster – Metrics flow into an Azure Monitor workspace in regular Azure – In AMG, add the Prometheus data source and choose Azure Auth → Managed Identity to point at your Azure Monitor workspace endpoint – Docs: • https://learn.microsoft.com/azure/azure-monitor/essentials/prometheus-grafana?tabs=azure-managed-grafana
• Use a self-hosted Grafana inside your network – Stand up Grafana on a VM or on-prem k8s and point it at your Prometheus/Loki via MetalLB – Then surface that Grafana UI via your own networking (VPN, ExpressRoute, Application Gateway, etc.)
Right now, you cannot directly use Azure Private Link Service from AMG in Azure Local/MOC because PLS isn’t supported there. If you need a fully managed solution in the public cloud, you’d have to host your Prometheus in a public-Azure AKS or in another subscription that supports PLS, expose it via a Private Link Service, and then use AMG’s “Managed Private Endpoint” feature:
• Tutorial: connect to a self-hosted Prometheus service on an AKS cluster using a managed private endpoint https://learn.microsoft.com/azure/managed-grafana/tutorial-mpe-oss-prometheus
Let me know which direction makes sense for you, or if you need more details on:
• Setting up Azure Monitor container insights with Prometheus scraping • Configuring the Prometheus data source in AMG for Azure Monitor • Deploying a self-hosted Grafana in your on-prem network
Reference list
- Troubleshoot Azure Managed Grafana Connection to On-Premises Prometheus Server https://learn.microsoft.com/azure/managed-grafana/troubleshoot-managed-grafana#connect-on-prem-prometheus
- Connect Grafana to Azure Monitor managed service for Prometheus https://learn.microsoft.com/azure/azure-monitor/essentials/prometheus-grafana?tabs=azure-managed-grafana
- Tutorial: connect to a self-hosted Prometheus service on an AKS cluster using a managed private endpoint https://learn.microsoft.com/azure/managed-grafana/tutorial-mpe-oss-prometheus
If the answer was helpful, kindly & Up-vote this can be beneficial to other community members.