No release in over 3 years
Low commit activity in last 3 years
A hacky Sensu plug-in to provide ACR Quota metrics by calling out to `az`
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Development

~> 3.0

Runtime

= 2.1.0
= 1.7.0
= 1.12.1
 Project Readme

Sensu Plugins Azure ACR Quota Metrics

Build Status Gem Version

This is a hacky Sensu plug-in to call out to the az to list all ACRs (Azure Container Registries) in a subscription and get quota usage metrics.

Note: Quota metrics are only available for 'managed' ACRs, and so the Classic sku is ignored.

The gem assumes virualenv, python and pip are installed, and will run install.bash as a pre-gem hook to install a virualenv and the required az command. Ick.

Tested on Ruby 2.3.

The unit test is a bit dubious, and it's almost impossible to run unit tests on Sensu plug-ins as they run as soon as scoped... The test must be run from the root directory also.

bundle exec rspec should run the test, after bundle installing of course.

Why call out to az instead of using the Ruby SDK?

There's very little documentation and this was the path of least resistance.

I'm open to re-writes which use the Ruby Gems instead. You'll need the azure_mgmt_compute and azure_mgmt_monitor gems.