为什么不是所有的azure app-insights指标都出现在Grafana中

问题描述 投票:0回答:1

我正在设置一些 Grafana 仪表板,用于从 Azure 检索数据。我已经成功设置了大部分必需的面板,但我没有想到的是“经过身份验证的用户”。

因此,在 azure 中,我们有 app-test-UK-dev-euw-appinsights -> Metrics enter image description here

这会在 Azure 中返回准确的数据

enter image description here

在 Grafana 中我可以看到大部分基于日志的指标 enter image description here

如果我选择其中任何一个,我会看到与我在 Azure 中看到的数据相匹配的数据,到目前为止,一切都很酷而且令人毛骨悚然。但我无法从 Grafana 的下拉列表中选择“用户”,它根本不存在。

enter image description here

这是正确的吗? 为什么有些基于日志的指标会出现,而有些则不会? 是我吗,我在这里错过了什么吗?

任何想法请大家。

azure grafana appinsights
1个回答
0
投票

正如评论中提到的,某些指标(例如经过身份验证的用户)可能不会通过插件公开。

Grafana 使用 Azure Monitor 数据源插件从 Azure 服务检索指标。 enter image description here

但是,该插件可能不支持所有类型的指标。请参阅Azure Monitor 数据源插件支持的指标,了解支持的指标。

“依赖项调用”、“页面视图”等指标是预定义的,通常可通过 Azure Monitor 获取。

“用户,经过身份验证”等自定义指标需要使用 KQL 查询 Azure Monitor 日志。像这样的东西-

customMetrics
| where name == "Users, authenticated"
| summarize Count = dcount(tenantId) by bin(timestamp, 1h)

参考资料:

© www.soinside.com 2019 - 2024. All rights reserved.