<p>We are running a Kubernetes cluster on AKS. The cluster runs on multiple node pools. Autoscaling is enabled to make sure nodes are added or removed when necessary.</p>
<p>I can see the current used amount of nodes by navigating to AKS -&gt; Settings -&gt; Node pools on the Azure Portal. However, I'm not able to get this information historically.</p>
<p>A question I want to find an answer for:
How many nodes were active for node pool 'x' last night?</p>
<p>I couldn't find any metrics for the AKS and Virtual Machine Scale Set resources to answer my question. What are my options?</p>

<p>AFAIK there is not such a metric. a small workaround could be:</p>
<p>In the Portal go to your AKS -&gt; Monitoring -&gt; Metrics. In the Scope select your AKS, Scope Namespace is <code>Container service</code> and then you have the following metrics:</p>
<ul>
<li><p><code>Cluster Health</code> - determines if the autoscaler will take action on the cluster</p>
</li>
<li><p><code>Unneeded Nodes</code> - autoscaler mark nodes for deletion</p>
</li>
</ul>
<p>There you can see at least if scaling took place and how many nodes were deleted afterwards so you could calculate the amount of nodes.</p>
