Search code examples
azureazure-blob-storageazure-monitoring

How to create metrics on static website pages in Azure by CLI


The official document instruct how to enable metrics on static website pages in Azure in the portal. The chart is able to be pinned in a dashboard there.

However, the method is not fit with my need.

  1. It cannot be filtered by folder or file. All transactions and egress belong to the same $web only. If there are two sub folders and I would like to view their visit counts separately, the metrics do not help.
  2. The portal method is not an automation method. The metric graph cannot be created by az CLI.

How can I use scripting way to create a chart or log of Storage's static website's daily visit count breakdown by folders?


Solution

  • Sorry for the slow reply, after searching everywhere, I figured out that it is not supported for folder, and as I said, it's not supported create a chart or log of Storage using CLI.