Azure 认知搜索使用情况监控

标签 azure azure-functions grafana azure-cognitive-search azure-monitoring

我有多个 Azure 认知搜索服务,分布在不同的订阅中。我想监控每个服务的使用情况,应该包括:

  • 存储:当前/配额
  • 不。索引:当前/配额
  • 不。索引器:当前/配额
  • 不。数据来源:当前/配额

因为我可以通过 Azure 门户中的“概述/使用” Pane 或通过 Management RestAPI 访问它们。

Azure Cognitive Search usage details

我想将这些数据推送到 Grafana 监控,但我遇到了一些问题:

  • 我无法从 Metrics 中获取此类数据
  • 诊断设置不允许导出此类数据(仅限指标和操作日志)

由于可以通过 RestAPI 访问使用数据,我正在考虑创建 Function App,它将 ping 每个搜索服务以收集数据,然后将其推送到 Log Analytics,然后我可以在 Grafana 中使用它。也许我可以为每个订阅拥有一个函数应用,并使用 RBAC 授予对搜索服务的访问权限,但我仍然不喜欢让一个应用可以访问多个搜索服务。

除了使用函数应用之外,如何将数据从 RestAPI 推送到 Log Analytics/Grafana?

最佳答案

到目前为止,除了通过附加功能将此数据推送到目的地之外,似乎没有其他选择。

关于Azure 认知搜索使用情况监控,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/71379265/

相关文章:

azure - 将 Azure AppServices 中的 Web API 的访问限制为 Azure Function 应用程序,同时允许其他服务访问其他 Web api 和网页

grafana - Grafana Loki 的 Fluentd 动态标签

monitoring - 你如何在 prometheus/grafana 表中显示大多数失败的 http 请求?

WCF URL 问题

.net - Azure 服务总线中继中的 304 响应

即使设置为私有(private)后,Azure blob 容器仍然可以直接访问

node.js - Azure Function 请求中端口 443 上的 EACCESS 错误

python - Azure函数内的多个文件(python应用程序)

go - Grafana 仪表板根据变量值显示/隐藏行

azure - CosmosClient 能否给出由于限制而发生的重试次数(http 429)?