有没有办法在Azure应用洞察中监视单个API(应用服务)中的多个端点?

huangapple go评论61阅读模式
英文:

Is there a way to monitor multiple endpoints inside a single API (App Services) in Azure Application Insights

问题

目标是逐个关注每个端点,包括以下指标:

  • 请求数量
  • 响应时间(请求持续时间)
  • 请求失败
  • 异常

我可以根据服务器(角色)来做到这一点,但我能根据每个端点来做吗?

英文:

The goal would be to follow each enpoint individually including those metrics :

  • Number of request
  • response time (request duration)
  • Request failures
  • Exceptions

I can do that based on the server (role) but can I do it based on each enpoint?

答案1

得分: 0

你寻找什么类型的持续时间?使用 Kusto,您可以创建如下的查询

requests
| summarize 
    requests = count(), 
    failures = countif(success == false),
    avg_duration = avg(duration)
  by operation_Name, cloud_RoleName

这对您有帮助吗?

英文:

What kind of duration are you looking for? Using kusto you can create a query like this

requests
| summarize 
    requests = count(), 
    failures = countif(success == false),
    avg_duration = avg(duration)
  by operation_Name, cloud_RoleName

Does this help to get you started?

huangapple
  • 本文由 发表于 2023年7月7日 03:21:01
  • 转载请务必保留本文链接:https://go.coder-hub.com/76631953.html
匿名

发表评论

匿名网友

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

确定