azure - 无法为 azure 函数应用程序的平均响应时间创建仪表板

标签 azure logging

我没有得到正确的函数应用查询平均响应时间

需要azure日志查询

最佳答案

Iam not getting correct query for function app to average response time

要获取函数应用程序的响应时间,您可以使用以下查询:

requests
| where cloud_RoleName == 'rithwik21'

enter image description here

要获取函数应用的平均响应时间,您可以使用以下查询:

requests
| where cloud_RoleName == 'rithwik21'
| summarize avg(duration) by bin(timestamp, 1h)

enter image description here

 requests
    | where cloud_RoleName == 'rithwik21'
    | summarize avg(duration) by bin(timestamp, 1h)
    | project avg_duration

enter image description here

这里rithwik21是函数应用名称。

要找出任何错误,您可以使用以下查询:

traces
| where message conatins "type error message"

关于azure - 无法为 azure 函数应用程序的平均响应时间创建仪表板,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/76109034/

相关文章:

java - 为什么 Java 中的记录器很少有 System.out.println 有的 .toString()?

c# - 登录 Winform 应用程序

bash - 脚本中详细模式的优雅方式?

Azure AppInsight 与 Log4Net

azure - 如何在Azure辅助角色中使用证书?

java - 在spark java中扫描azure blob存储容器

java - 整个程序的记录器打印消息两次,有时甚至打印更多次

azure - Visual Studio Online 摩纳哥在哪里?

c# - Azure Durable Functions 的 CallActivityWithRetryAsync 不会在失败时重试

logging - NLog 程序数据路径