Forum Discussion
D. Nahuel C.
Sep 02, 2019Copper Contributor
Counters Frequency and costs
Hi all I need to understand a way of calculating each VM Performance Counter frequency and associated costs. I get that Log Analytics charges you for Data Ingestion, correct? So if I have one perf...
CliveWatson
Sep 02, 2019Silver Contributor
You can see how much data a counter used in 10s, 30s etc...
Perf
| where CounterName == "% Processor Time" and InstanceName == "_Total"
| summarize TotalGBytes = sum(_BilledSize / (1024*1024*1024)) by bin(TimeGenerated, 10s)
Go to Log Analytics and Run Query
I have a few posts along similar lines: https://cloudblogs.microsoft.com/industry-blog/en-gb/cross-industry/2019/07/22/azure-log-analytics-looking-at-data-and-costs-part-4/
You might need to see Bytes, to find the average per time period
Perf
| where CounterName == "% Processor Time" and InstanceName == "_Total"
| summarize TotalBytes = avg(_BilledSize) by bin(TimeGenerated, 10s)
TimeGenerated | TotalBytes |
---|---|
2019-09-01T23:26:10Z | 225.203125 |
2019-09-01T23:26:20Z | 224.793893129771 |
2019-09-01T23:26:30Z | 224.40458015267177 |
2019-09-01T23:26:40Z | 224.29007633587787 |
2019-09-01T23:26:50Z | 224.74418604651163 |