Green-Software-Foundation/if-unofficial-plugins

[User story] ....Identify metrics and dimensions that will impact SCI for a Azure virtual machine

srini1978 opened this issue · 1 comments

As a developer I want to identify all the metrices and the corresponding dimensions that will impact SCI scores for an Azure virtual machine so that I can call the Azure Monitor API with the right metric name and filter.

** Implementation Idea **
To identify all metrics that are possible in an Azure VM, call the REST APIs given below.

https://learn.microsoft.com/en-us/azure/azure-monitor/essentials/rest-api-walkthrough?tabs=portal#retrieve-metric-definitions
https://learn.microsoft.com/en-us/azure/azure-monitor/essentials/rest-api-walkthrough?tabs=portal#retrieve-dimension-values

Look at the metric definitions and dimension values to understand which will impact carbon.

As per https://learn.microsoft.com/en-us/azure/azure-monitor/reference/supported-metrics/microsoft-compute-virtualmachines-metrics the key metrics that will affect SCI from a VM standpoint are

  1. CPU percentage - Average and sampled every 1 minute. The percentage of allocated compute units that are currently in use by the Virtual Machine(s).
  2. Data Disk Bandwidth Consumed Percentage
  3. Data Disk IOPS Consumed Percentage
  4. Network In- The number of bytes received on all network interfaces by the Virtual Machine(s) (Incoming Traffic).
  5. Network Out- The number of bytes out on all network interfaces by the Virtual Machine(s) (Outgoing Traffic).