azure-monitor-datasource icon indicating copy to clipboard operation
azure-monitor-datasource copied to clipboard

Add support for IoT Hub quota

Open walterdolce opened this issue 7 years ago • 5 comments

Hi, it seems at the moment it's not possible to get the quota of a provisioned IoT Hub resource from within Azure. The plugin already supports various kinds of metrics for IoT Hub but with this addition I think it would allow for a more reliable way of setting up thresholds and alerts from within Grafana (at the moment you could but it would only be by manually setting a threshold on i.e. the max number of messages sent/received).

I am specifically referring to this API: https://docs.microsoft.com/en-us/rest/api/iothub/iothubresource/getquotametrics

If this is something you guys would think it's worth adding it to the plugin I would be happy to contribute to it when I have some bandwidth.

Thank you

walterdolce avatar Sep 26 '18 14:09 walterdolce

@walterdolce please excuse the delay - took me a while to get around to setting up an iot hub in Azure.

The link you posted seems to say that that route returns two metrics - total message and total devices.

Once I added them via diagnostics in the Azure portal then they seem to show up for me:

image

Or are there extra quota metrics?

daniellee avatar Dec 03 '18 23:12 daniellee

Hi @daniellee, thanks for coming back to me on this and no worries!

Yes, I'm referring to an extra quota metrics currently not supported by the plugin. It would be great to have this supported!

walterdolce avatar Dec 04 '18 11:12 walterdolce

@walterdolce can you explain more? I only see two metrics. What are the extra quota metrics that are not supported?

daniellee avatar Dec 07 '18 01:12 daniellee

@daniellee apologies for the delay.

I'm referring to these APIs: https://docs.microsoft.com/en-us/rest/api/iothub/iothubresource/getquotametrics

It would be great if those were supported.

walterdolce avatar Dec 14 '18 18:12 walterdolce

I'd just like to add my endorsement for this request. We do a lot of work with IoT hub an knowing when it is going to hit it's quota would be very useful.

beerygaz avatar Mar 04 '19 12:03 beerygaz