Hello Cheah, Felix FC,
Check below troubleshooting to resolve the issue:
Add below "host.json" in your code and make changes (function name) accordingly and check if the metrics are working.
{
"version": "2.0",
"logging": {
"logLevel": {
"default": "Information",
"Function": "Information",
"Host.Aggregator": "Information",
"Host.Results": "Information",
"Function.Function1": "Information",
"Function.Function1.User": "Information"
}
},
"applicationInsights": {
"samplingSettings": {
"isEnabled": false
},
"enableLiveMetricsFilters": true
},
"concurrency": {
"dynamicConcurrencyEnabled": true,
"snapshotPersistenceEnabled": true
}
}
Check the hosting plan of the dedicated function app and see if any one of the limitations are being hit.
You can go to the "Diagnose and solve problems" option under the Function App's resource menu contains scenario-based troubleshooting step that can be used to get more inputs on the Statistics related to function execution. Once you visit the above path, you can check for execution then it provides you the function execution counts related details.
Also, verify if you have configured and enabled the application insights properly regarding the logs and metrics part.
If the answer is helpful, please click on Accept Answer and upvote it. If you still have any queries, click on comment.