Azure / azure-functions-on-container-apps

Docs , samples and issues for Azure Functions on Azure Container Apps
MIT License
74 stars 18 forks source link

Metrics in Azure do not show anything #82

Open ogix opened 1 month ago

ogix commented 1 month ago

I have set up a function app in dotnet-isolated mode with ACA. Functions are running but Metrics do not show anything.

image

Have I done something wrong or this is a known issue?

v-shenoy commented 1 month ago

Can you share the following details for us to debug further?

I would also like you to confirm if the application insights connection is present as an app setting.

ogix commented 1 month ago

name: func-we-tst-westeu-2 bindings: mostly timer triggered

yes, app insights connection string is present:

Image

v-shenoy commented 1 month ago

Thanks for the information, will get back.

raorugan commented 1 month ago

This is currently work in progress. Will notify this thread once the metrics support is out for Functions on ACA resources. Currently FunctionExecutionCount metrics are been looked into. Please let me know if there are other metrics that you need.

kmadof commented 1 month ago

I would be interested to have Instance count

ogix commented 1 month ago

Thanks for the update. But it looks like Functions on ACA are still in Preview stage. At least I would expect some message saying that metrics widgets are currently not working..

kmadof commented 1 month ago

Well Function on ACA got GA, so this is rather strange that metrics are not available. But as far as I know, there are also issues with metrics when Functions are hosted in a Linux-based App Service plan.

eduards-vavere commented 4 weeks ago

Metrics are not working, not able to setup alerts

kmadof commented 2 weeks ago

@raorugan is there any ETA for this?

raorugan commented 2 weeks ago

@eduards-vavere - please let us know which metrics you need to setup alerts?

raorugan commented 2 weeks ago

@kmadof - this is work in progress , by end of november we may get some idea on this. May I know which metrics are you looking for?

eduards-vavere commented 2 weeks ago

Failed execution count number 1

Nice to have:

Cpu, memory, replica restarts, avg response time, http 4xx 5xx

raorugan commented 2 weeks ago

@eduards-vavere - these are available from underlying ACA resource of function app. You can follow guidance in this link to capture and configure alerts - https://learn.microsoft.com/en-us/azure/container-apps/metrics

kmadof commented 1 week ago

@raorugan, how can we access the metrics of underlying container apps? I can't find a way to do this.

And speaking about metrics (apart of course all metrics from underlying container apps) I would like to see these:

Ideally, it would be able to split them by Function Name.

raorugan commented 1 week ago

Sure, May I know the use-case for consuming FunctionExecutionUnits, Automatic Scaling Instance Count?

kmadof commented 1 week ago

FunctionExecutionUnits would be useful to monitor costs Automatic Scaling Instance Count - here we want to scale from 0 and this would be good for monitoring the performance o processed messages

kmadof commented 4 days ago

@raorugan Can you explain how we can capture metrics of underlying container apps?

raorugan commented 4 days ago

Azure Functions on ACA are not billed on execution count . Please check billing meters here - https://azure.microsoft.com/en-us/pricing/details/container-apps/?msockid=0a425015a13d6de6067d418da0d56c26 Check out the replica count metrics of the underlying container app. Link - https://learn.microsoft.com/en-us/azure/container-apps/metrics#available-metrics

raorugan commented 4 days ago

@kmadof - You can follow guidance in this link to capture and configure alerts - https://learn.microsoft.com/en-us/azure/container-apps/metrics

kmadof commented 2 days ago

@raorugan, I still don't know how to get the name of the underlying container app. It is easy for a regular Container App. But Azure Functions on ACA is just shown as Azure Function.