Issue with Verifying Execution Count of Functions in Azure Functions

KURAMOTOAHUJATAIRA-3118 250 Reputation points
2023-06-22T01:01:58.8733333+00:00

I'm experiencing a problem with verifying the execution count of a function in Azure Functions. I have configured the function to be triggered by data input to Stream Analytics. The number of data inputs and outputs to Stream Analytics is 594, as indicated below.

スクリーンショット (46)

However, the execution count of the function shows only 508 as indicated below, resulting in a discrepancy in the numbers. The function is designed to process data received at one-second intervals and transfer it to another location. I have confirmed that there are indeed 594 data items at the destination, so the function should have executed 594 times. However, the Azure logs display only 508 executions. How can I accurately determine the execution count from the logs and metrics? Any advice would be greatly appreciated.

スクリーンショット (47)

Azure Monitor
Azure Monitor
An Azure service that is used to collect, analyze, and act on telemetry data from Azure and on-premises environments.
2,996 questions
Azure Functions
Azure Functions
An Azure service that provides an event-driven serverless compute platform.
4,625 questions
Azure Stream Analytics
Azure Stream Analytics
An Azure real-time analytics service designed for mission-critical workloads.
343 questions
{count} votes

Accepted answer
  1. AnuragSingh-MSFT 21,241 Reputation points
    2023-06-23T10:36:58.65+00:00

    @KURAMOTOAHUJATAIRA-3118 , Thank you for the question. Here are some of the pointers that should help understand the difference further:

    1. Have you verified that the FunctionApp processed all the messages, and the discrepancy is only reported in metric?
    2. Please check the hosting plan being used and see if one of the limitations is being hit. For example, during scale-out, there's currently a limit of 500 instances per subscription per hour for Linux apps on a Consumption plan. Fo details, see Function App Hosting plan options: Scale.
    3. The "Diagnose and solve problems" option under the Function App's resource menu contains scenario based troubleshooting step which can be used to get more insights on the Statistics related to function execution. For example, "Availability and performance" has the following scenarios which could help understand more about the execution performances: User's image
    4. You should also review the "Activity log" under function's resource menu for any issues reported while executing the FunctionApp.
    5. Also, please review the **Azure Functions reliable event processing **document for best practices related to such reliable event processing.
    6. The Azure Function Logging could be used to share logs from Function itself using ILogger which can be verified from LA workspace for total execution count. details - Function App Logging

    The above are some general guidelines and pointers that should help with the issue. However, if you are specifically facing an issue with your function app that is not showing the correct execution count (even though all the events/inputs were processed), I would suggest creating a support ticket, so that it can be checked from the backend host with other relevant telemetry.

    Hope this helps.


0 additional answers

Sort by: Most helpful