【发布时间】:2021-03-23 16:08:48
【问题描述】:
在回答 Retrieve quota for Microsoft Azure App Service Storage 时,我偶然发现了Microsoft.Web/sites 资源类型的 FileSystemUsage 指标。根据documentation,该指标应返回Percentage of filesystem quota consumed by the app.。
但是,当我为我的 Web 应用程序执行 Metrics - List REST API 操作(以及在 Azure 门户的 Metrics 刀片中)时,该值始终返回为零。我对照 Azure 订阅中的一些 Web 应用程序检查了它,所有这些应用程序的结果都是零。我很想知道其中的原因。
相比之下,如果我执行App Service Plans - List Usages REST API 操作,它会返回正确的值。例如,如果我的应用服务计划是 S2,我会收到以下回复:
{
"unit": "Bytes",
"nextResetTime": "9999-12-31T23:59:59.9999999Z",
"currentValue": 815899648,
"limit": 536870912000,//500 GB (50 GB/instance x max 10 instances)
"name": {
"value": "FileSystemStorage",
"localizedValue": "File System Storage"
}
},
我是否误解了 FileSystemUsage 对于 Web 应用程序?如果有人可以解释该指标的目的,将不胜感激?如果确实是记录的内容,那么为什么 API 返回零值?
【问题讨论】:
标签: azure azure-web-app-service metrics azure-monitoring