title: Azure IoTHub - How to get usage data per device
body: <p>I am using Azure Monitor to view diagnostics/logs for my IoTHub. In the <a href="https://docs.microsoft.com/en-us/azure/azure-monitor/platform/metrics-supported#microsoftdevicesiothubs" rel="nofollow noreferrer">metrics available for IoTHub</a> there is <code>deviceDataUsage.</code> As I understand it, this is the total data usage for all of the devices connected to this IoTHub.</p>
  
  <p>Is there a built-in monitoring/logging solution to Azure IoTHub that would allow me to view per device data usage? Or will I need to use a different tool, such as stream analytics, to build my own solution?</p>