How do I connect my Http Trigger function with Prometheus and Grafana?

Marius A 31 Reputation points
2022-06-23T09:20:51.047+00:00

I have a Azure Http Trigger function that receives data through a public API.
I want to publish that data to Prometheus and then display it with Grafana.
Can I achieve this by creating a container registry containing Prometheus and Grafana?
Can my Azure Function connect to Prometheus inside the container registry? Can I access the Grafana Web Page when Grafana is hosted inside the container registry?
If not, what Azure components should I use to achieve my goal?

Thank you!

Azure Container Registry
Azure Container Registry
An Azure service that provides a registry of Docker and Open Container Initiative images.
428 questions
Azure Functions
Azure Functions
An Azure service that provides an event-driven serverless compute platform.
4,679 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. MughundhanRaveendran-MSFT 12,456 Reputation points
    2022-06-27T04:07:16.503+00:00

    @Marius A , Looking at the below documentation, services hosted in AKS have the capability of sending data to prometheus and then it can be displayed in Grafana

    https://learn.microsoft.com/en-us/azure/azure-monitor/containers/container-insights-prometheus-integration

    So you can host the http triggered function in AKS and then achieve your goal
    https://learn.microsoft.com/en-us/azure/azure-functions/functions-kubernetes-keda

    1 person found this answer helpful.
    0 comments No comments