{"id":4683,"date":"2020-05-05T10:07:01","date_gmt":"2020-05-05T08:07:01","guid":{"rendered":"http:\/\/contoso.se\/blog\/?p=4683"},"modified":"2020-05-05T10:07:54","modified_gmt":"2020-05-05T08:07:54","slug":"measure-bandwidth-in-use-with-azure-monitor","status":"publish","type":"post","link":"http:\/\/contoso.se\/blog\/?p=4683","title":{"rendered":"Measure bandwidth with Azure Monitor"},"content":{"rendered":"\n<p>Today I want to quickly share a query that shows Mbit used for a specific network adapter. <\/p>\n\n\n\n<blockquote class=\"wp-block-quote\"><p>Perf<br \/>| where ObjectName == &#8220;Network Adapter&#8221;<br \/>| where Computer == &#8220;DC20.NA.contosohotels.com&#8221;<br \/>| where CounterPath contains &#8220;Bytes Received&#8221; or CounterPath contains &#8220;Bytes Sent&#8221;<br \/>| where InstanceName == &#8220;Microsoft Hyper-V Network Adapter&#8221;<br \/>| summarize avg(CounterValue) by bin(TimeGenerated, 5m)<br \/>| extend Mbit = avg_CounterValue \/ 125000<br \/>| project TimeGenerated , Mbit<\/p><\/blockquote>\n\n\n\n<p>This query can, for example, be used in migration scenarios to estimate network connection required. The query will convert bytes to Mbit.<\/p>\n\n\n\n<figure class=\"wp-block-image size-large is-style-default\"><a href=\"http:\/\/contoso.se\/blog\/wp-content\/uploads\/2020\/05\/image.png\" target=\"_blank\" rel=\"noopener noreferrer\"><img decoding=\"async\" loading=\"lazy\" width=\"1019\" height=\"784\" src=\"http:\/\/contoso.se\/blog\/wp-content\/uploads\/2020\/05\/image.png\" alt=\"\" class=\"wp-image-4684\" srcset=\"http:\/\/contoso.se\/blog\/wp-content\/uploads\/2020\/05\/image.png 1019w, http:\/\/contoso.se\/blog\/wp-content\/uploads\/2020\/05\/image-300x231.png 300w, http:\/\/contoso.se\/blog\/wp-content\/uploads\/2020\/05\/image-768x591.png 768w\" sizes=\"(max-width: 1019px) 100vw, 1019px\" \/><\/a><\/figure>\n","protected":false},"excerpt":{"rendered":"<p>Today I want to quickly share a query that shows Mbit used for a specific network adapter. Perf| where ObjectName == &#8220;Network Adapter&#8221;| where Computer == &#8220;DC20.NA.contosohotels.com&#8221;| where CounterPath contains &#8220;Bytes Received&#8221; or CounterPath contains &#8220;Bytes Sent&#8221;| where InstanceName == &#8220;Microsoft Hyper-V Network Adapter&#8221;| summarize avg(CounterValue) by bin(TimeGenerated, 5m)| extend Mbit = avg_CounterValue \/ 125000| &hellip; <a href=\"http:\/\/contoso.se\/blog\/?p=4683\">Continue reading <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_monsterinsights_skip_tracking":false,"_monsterinsights_sitenote_active":false,"_monsterinsights_sitenote_note":"","_monsterinsights_sitenote_category":0},"categories":[64,75],"tags":[77,72,74,76],"_links":{"self":[{"href":"http:\/\/contoso.se\/blog\/index.php?rest_route=\/wp\/v2\/posts\/4683"}],"collection":[{"href":"http:\/\/contoso.se\/blog\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/contoso.se\/blog\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/contoso.se\/blog\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/contoso.se\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=4683"}],"version-history":[{"count":2,"href":"http:\/\/contoso.se\/blog\/index.php?rest_route=\/wp\/v2\/posts\/4683\/revisions"}],"predecessor-version":[{"id":4686,"href":"http:\/\/contoso.se\/blog\/index.php?rest_route=\/wp\/v2\/posts\/4683\/revisions\/4686"}],"wp:attachment":[{"href":"http:\/\/contoso.se\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=4683"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/contoso.se\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=4683"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/contoso.se\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=4683"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}