如何使用PowerShell中的AZ命令获得Azure指标?
如何获得Azure指标,失败的请求,应用程序性能,CPU使用和内存使用量?
有AZ监视器指标列表 - 归因 [ - Aggregation {平均值,计数,最大,最小,无,note}]] [ - 方面] [ - 末期] [ - 筛选] [ - 间隔] [ - 米达塔] [-Metrics] [-namespace] [ - 抵消] [ - orderby] [ - 资源组] [ - 储蓄名称空间] [ - 这里论] [ - 源型] [ - start-t
我试图使用t,
az monitor metrics list --resource "AppServiceName"
但是获取和错误:
az : usage error: --resource ID | --resource NAME --resource-group NAME --resource-type
TYPE [--resource-parent PARENT] [--resource-namespace NAMESPACE]
How can i get the Azure metrics , failed requests , app performance, CPU usage and Memory usage ?
There is the az monitor metrics list --resource
[--aggregation {Average, Count, Maximum, Minimum, None, Total}]
[--dimension]
[--end-time]
[--filter]
[--interval]
[--metadata]
[--metrics]
[--namespace]
[--offset]
[--orderby]
[--resource-group]
[--resource-namespace]
[--resource-parent]
[--resource-type]
[--start-t
I have tried to use t as follows
az monitor metrics list --resource "AppServiceName"
but get and error:
az : usage error: --resource ID | --resource NAME --resource-group NAME --resource-type
TYPE [--resource-parent PARENT] [--resource-namespace NAMESPACE]
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
现在 - 但是所需的资源ID采用几个表格,例如
/subscriptions/b6ff2c43-9c91-4c25-bf05-62fdea862e7b/resourcegroups/my-rsg/providers/microsoft.web/serverfarms/serverfarms/mymytherthertherther。
例如,在门户网站的属性中找到。
Resource ID">
you can then run in azure cli
az monitor metrics list --resource /subscriptions/b6ff2c43-9c91-4c25-bf05-62fdea862e7b/resourceGroups/My-RSG/providers/Microsoft.Web /serverfarms/mywhate。
Old now - but the resource ID required takes a few forms for example
/subscriptions/b6ff2c43-9c91-4c25-bf05-62fdea862e7b/resourceGroups/My-RSG/providers/Microsoft.Web/serverfarms/mywhatever.
This is found in the properties seciton of the portal for example.
you can then run in azure cli
az monitor metrics list --resource /subscriptions/b6ff2c43-9c91-4c25-bf05-62fdea862e7b/resourceGroups/My-RSG/providers/Microsoft.Web/serverfarms/mywhatever.