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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 3c225c18985f3dc0c7a9d2b0a5dcc5e7ce01c30b
4
- data.tar.gz: 44dae56fc2534ba6c93507d6e390aa316b884421
3
+ metadata.gz: bd4724d0bbe95ef69deaffe0611d345cff57e6e5
4
+ data.tar.gz: a106e2e8e70ab0996341cb93731b45ad51caddae
5
5
  SHA512:
6
- metadata.gz: c3d10f40b8201451302ce75e1f5f5228d2b3b0086b2acf5b22cd70b9f9ee6e49cf7e2445637d1f2f953139546286032725dc2ebbc13f0d73c5ff1c65368c9412
7
- data.tar.gz: a4e17952d7ecb8e298699671c18f40ca110679b5d27a26d58c73423eb798d6190cf5193422a8e892d47c0a2491c044e420921e7a9df0157111ef81c3addab5c0
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
@@ -1,5 +1,10 @@
1
1
  #!/bin/bash
2
2
 
3
+ if [ "$TRAVIS" = true ]; then
4
+ echo "This is Travis, don't pre-install \`az\`... Exiting 0..."
5
+ exit 0
6
+ fi
7
+
3
8
  ENV_DIR="/az-python"
4
9
 
5
10
  check_error()
@@ -2,7 +2,7 @@ module SensuPluginsAzureBurstableMetrics
2
2
  class Version
3
3
  MAJOR = 0
4
4
  MINOR = 0
5
- PATCH = 4
5
+ PATCH = 5
6
6
 
7
7
  VER_STRING = [MAJOR, MINOR, PATCH].compact.join('.')
8
8
  end
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
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-08 00:00:00.000000000 Z
11
+ date: 2018-05-11 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: json