sensu-plugins-azure-burstable-metrics 0.0.4 → 0.0.5
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +2 -0
- data/bin/sensu-plugins-azure-burstable-metrics.rb +1 -1
- data/install.bash +5 -0
- data/lib/sensu-plugins-azure-burstable-metrics/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: bd4724d0bbe95ef69deaffe0611d345cff57e6e5
|
4
|
+
data.tar.gz: a106e2e8e70ab0996341cb93731b45ad51caddae
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: bdb9ce18ded823cb2b3d4026a28911bd2f340dba2e4672a7965be2eb58fc29dfde476223cd58127f119f629f74a70dbcc658a22aa8dab6ee2cac9798c7fdaab5
|
7
|
+
data.tar.gz: b8c94f37203b58dc5ae4cb934d4812fc55168a2bf947f565452feaa73d3d396eac87670359c6423fb84685f7d7c720130c906305d8f1dd3328d82d0ee7621213
|
data/README.md
CHANGED
@@ -1,6 +1,8 @@
|
|
1
1
|
Sensu Plugins Azure Burstable Metrics
|
2
2
|
=====================================
|
3
3
|
|
4
|
+
[![Build Status](https://travis-ci.org/ElvenSpellmaker/sensu-plugins-azure-burstable-metrics.svg?branch=master)](https://travis-ci.org/ElvenSpellmaker/sensu-plugins-azure-burstable-metrics) [![Gem Version](https://badge.fury.io/rb/sensu-plugins-azure-burstable-metrics.svg)](https://badge.fury.io/rb/sensu-plugins-azure-burstable-metrics)
|
5
|
+
|
4
6
|
This is a hacky Sensu plug-in to call out to the `az` to list all vms in a
|
5
7
|
subscription and then gather metrics about burstable credits and output them in
|
6
8
|
a Graphite way.
|
@@ -47,7 +47,7 @@ class BurstableMetrics < Sensu::Plugin::Metric::CLI::Graphite
|
|
47
47
|
config[:tenant_id],
|
48
48
|
)
|
49
49
|
|
50
|
-
machines = @metrics_client.vm_list.select! { |machine| machine['hardwareProfile']['vmSize'] =~ /.*B\d{1,2}s$/ }
|
50
|
+
machines = @metrics_client.vm_list.select! { |machine| machine['hardwareProfile']['vmSize'] =~ /.*B\d{1,2}m?s$/ }
|
51
51
|
|
52
52
|
time = Time.now.utc
|
53
53
|
start_time = (time - 120).strftime(@@time_format)
|
data/install.bash
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: sensu-plugins-azure-burstable-metrics
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.5
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Jack
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2018-05-
|
11
|
+
date: 2018-05-11 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: json
|