如何在 Grafana 中显示 Azure 部署中心日志历史记录

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

我们有一组 Grafana 仪表板,它们连接到我们的 Azure 系统,并且这些仪表板上显示了一些有用的数据。

但是,目前有 1 个数据让我无法理解,这是部署中心日志。在 Azure 中,这些是可见的:

enter image description here enter image description here

所以我的问题是如何在 Grafana 仪表板上显示它,有什么想法吗? 预先感谢您对此提供的任何帮助。

azure grafana
1个回答
0
投票

有一个 REST Api 来访问日志

https://management.azure.com/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/deployments?api-version=2023-12-01

请参阅文档

然后,使用 Grafana 的 Infinity 数据源插件 来可视化数据。有一个教程介绍如何基于 azure 管理 api 执行此操作,这是您所需要的。

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