[英]Send Azure Metrics chart by email - by any means
I manually email out a screenshot of a line chart from the Azure portal (expressroute circuit / metrics / avg bitsinpersecond).我手动从 Azure 门户(expressroute 电路/指标/平均位每秒)通过电子邮件发送了折线图的屏幕截图。 Is there any way I can get this to email out automatically on a schedule, or if not, then use Powershell AzureRM or Az CLI to pull the data and produce a chart?
有什么方法可以让我按计划自动发送电子邮件,或者如果没有,则使用 Powershell AzureRM 或 Az CLI 提取数据并生成图表? From googling I see people recommend NPM but I think that's a bit heavy for my needs here.
通过谷歌搜索,我看到人们推荐 NPM,但我认为这对我的需求来说有点沉重。
Thanks in advance提前致谢
While not using PowerShell or CLI, with Logic Apps you can get a chart from Azure Monitor using the Azure Monitor Logs Connector .虽然不使用 PowerShell 或 CLI,但通过逻辑应用,您可以使用Azure Monitor 日志连接器从 Azure Monitor 获取图表。 For this I believe, you would have to first setup the Express Route related Solution to Azure Monitor .
为此,我相信您必须首先将 Express Route 相关解决方案设置为 Azure Monitor 。
Here is an awesome blog that covers creating a Logic App using these connectors.这是一个很棒的博客,涵盖了使用这些连接器创建逻辑应用程序。 You would have to change the queries to fetch metrics for your express route resource.
您必须更改查询以获取快速路由资源的指标。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.