How to send Prometheus metrics from custom exporter to Azure managed Prometheus?

Barak Pahima 60 Reputation points
2024-01-01T08:43:18.09+00:00

I have Azure managed Prometheus that collects data from my AKS and managed Grafana. I also have a custom exporter that collects data from my services running on Azure VMSS. How can I send the data from my custom exporter to Azure managed Prometheus? Any guidance on how to achieve this is appreciated.

Thank you, Barak.

Azure Monitor
Azure Monitor
An Azure service that is used to collect, analyze, and act on telemetry data from Azure and on-premises environments.
3,561 questions
{count} votes

1 answer

Sort by: Most helpful
  1. AnuragSingh-MSFT 21,506 Reputation points
    2024-01-03T08:22:23.3266667+00:00

    Barak Pahima, thank you for posting this question on Microsoft Q&A.

    Azure Managed Prometheus can be configured to collect data from the following sources:

    • Azure Kubernetes service (AKS)
    • Any Kubernetes cluster running self-managed Prometheus using remote-write.
    • Azure Arc-enabled Kubernetes

    Based on the scenario mentioned in the question, the "remote-write" option seems to be optimum for your case, as you are using custom exporter. If you are running this exporter as Kubernetes cluster, either of the following method:

    Configure remote write for Azure Monitor managed service for Prometheus using managed identity authentication - if you are running this exporter as Azure Kubernetes Cluster OR Azure Arc-enabled Kubernetes cluster

    Configure remote write for Azure Monitor managed service for Prometheus using Microsoft Entra authentication - if you are running this exporter as Azure Kubernetes Cluster OR Azure Arc-enabled Kubernetes cluster OR Kubernetes cluster running in another cloud or on-premises

    Hope this helps.

    If the answer did not help, please add more context/follow-up question for it to help us understand the scenario better.

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.