Azure-Functions
Azure-Functions copied to clipboard
Function Execution Count metric should be present in MDM when on app service plan
If you go into the Azure Portal and browse to Monitor->Metrics and then select your function app, one of the metrics you can view is Function Execution Count. However this metric is only populated for function apps in the consumption plan. A function app on an app service plan will show zero executions.
This makes it difficult for users to add an alert that would fire if there are no executions. They can probably achieve a similar goal through App Insights but it would likely involve writing a custom query which is not intuitive.
@nimakms for monitoring
@paulbatum is this still relevant?
@ColbyTresness yes.
I just noticed this is a problem for us. We would like to use this metric to make sure the function is regularly firing as expected, but as it is zero all the time it is useless.
And I have no idea why my commenting on this unassinged @nimakms there.
I just opened up a support request on this topic as I was also confused at this value being 0 when on the Premium plan. The support engineer directed me to this issue. The current behavior is certainly not intuitive and writing a custom query seems like overkill for what should be a basic metric of a function. Are there any alternatives here?
I too also see the execution count as zero on premium plan. Super confusing when you open the function in the portal and see this:
Also would be nice if there was an easier way to chart how many instances are active. The only place I've found to see this is in live metrics.
However this metric is only populated for function apps in the consumption plan. A function app on an app service plan will show zero executions.
Hi @paulbatum, could you post a reference to the documentation saying that the Function Execution Count is populated only for Function Apps in the consumption plan?
We are running multiple functions on an app service plan and the metrics are being populated, but not completely. Some executions are not displayed, which makes it extremely annoying.
Could those two issues (listed below) be related through a partial update / fix over the years?
-
A function app on an app service plan will show zero executions
-
Running functions on an App service plan and the metrics are being populated, but not completely
We are now documenting this metric here.
+1 for this issue. If we have to measure the non-HTTP trigger invocation for a load test and measure the time when there were zero executions and calculate the total time for non-HTTP triggers for a premium plan, then we need this metric. For eg: comparing an event grid trigger vs HTTP trigger in a premium plan - for such a notification service, we would need to know at what point (after rate matching and batching) was Functions able to complete a huge batch of events.
+1 for this issue. In my case Linux Dedicated. It is not zero execution It report different count.
Actual Function Execution
Function Execution Count
Any updates on this annoying issue?
Another +1
I agree with the previous posters. Please fix this!
Any updates?