Azure-Functions icon indicating copy to clipboard operation
Azure-Functions copied to clipboard

Function Execution Count metric should be present in MDM when on app service plan

Open paulbatum opened this issue 6 years ago • 14 comments

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.

paulbatum avatar Apr 04 '18 23:04 paulbatum

@nimakms for monitoring

@paulbatum is this still relevant?

ColbyTresness avatar Dec 04 '18 18:12 ColbyTresness

@ColbyTresness yes.

paulbatum avatar Dec 04 '18 19:12 paulbatum

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.

CodingAnarchy avatar May 28 '20 21:05 CodingAnarchy

And I have no idea why my commenting on this unassinged @nimakms there.

CodingAnarchy avatar May 28 '20 21:05 CodingAnarchy

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?

andrewdmoreno avatar Oct 05 '20 17:10 andrewdmoreno

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: image

mattjohnsonpint avatar Oct 08 '20 17:10 mattjohnsonpint

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.

mattjohnsonpint avatar Oct 08 '20 17:10 mattjohnsonpint

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

IonutStef avatar Oct 14 '20 13:10 IonutStef

We are now documenting this metric here.

ggailey777 avatar Feb 10 '21 20:02 ggailey777

+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.

priyaananthasankar avatar Apr 07 '21 22:04 priyaananthasankar

+1 for this issue. In my case Linux Dedicated. It is not zero execution It report different count.

Actual Function Execution

image

Function Execution Count

image

TsuyoshiUshio avatar Jul 01 '21 22:07 TsuyoshiUshio

Any updates on this annoying issue?

black-byte avatar Jul 17 '22 04:07 black-byte

Another +1

myildiz-axendo avatar Sep 05 '22 08:09 myildiz-axendo

I agree with the previous posters. Please fix this!

martinhenrysson avatar Sep 05 '22 10:09 martinhenrysson

Any updates?

AnnaGuzy avatar Dec 08 '22 10:12 AnnaGuzy