microsoft / azure-container-apps

Roadmap and issues for Azure Container Apps
MIT License
370 stars 29 forks source link

Support for custom metrics #26

Open denniszielke opened 2 years ago

denniszielke commented 2 years ago

For my custom applications I would like to ensure metrics scrapping of my own metrics endpoints in the application (see https://docs.microsoft.com/en-us/azure/azure-monitor/containers/container-insights-prometheus-integration).

End goal would be to gain observability into my applications on both technical and business metrics.

timoknapp commented 2 years ago

Our team is also striving for such a feature in Container Apps. Our previous APM setup was built on top of Prometheus + Grafana which allowed us to monitor custom metrics with Micrometer and Prometheus. I furthermore noticed, that there already exists a similar integration with AKS. Would it be possible to make this work with Container Apps too?

Our current set of containers already expose these metrics on a generic actuator endpoint (HOST:PORT/actuator/prometheus).

It would be really awesome if Container Apps could automatically forward these metrics to Azure Monitor such that our existing APM use cases could be implemented on Azure too!

Regards, Timo

denniszielke commented 1 year ago

I have build a sample on how scrape metrics in Prometheus format using a telegraf sidecar and push them to Azure Managed Prometheus: https://github.com/denniszielke/serverless-job-engine#monitoring-builtin-and-custom-java-metrics-using-micrometer

Screenshot 2023-02-06 at 10 35 32
cstickel commented 9 months ago

@SophCarp since you reassigend the issue last week to you, is the container apps team currently actively working on a solution to support container apps metrics via managed prometheus? are there any details that can be shared?

stephane-dereppe commented 2 months ago

Hi.

Any update on this?