sensu-plugins-json-mutator 0.2.0 → 0.2.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/bin/mutator-json.rb +2 -2
- data/lib/sensu-plugins-json-mutator/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: c6466f47910cccd5b21f90016dc5d27b52e67f4c
|
4
|
+
data.tar.gz: 58e48e495e6f5721ad90b37f680e2d091afc9a83
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a0a993b1403c6675d60d21841c3a3685f8174f6b547f1f863929c9484e13d63fda3f09e974c1cd6094bf960b86f0f80220dff4449aeadadd32e7c3f59819baa8
|
7
|
+
data.tar.gz: 8f389a171776693066f8dd17cfbacee32b370b0ab5cdb1623c093fe76de848446e0213833e11b6f0a8b18f735a1ba895965f78894a9075c9d303ad811076e683
|
data/bin/mutator-json.rb
CHANGED
@@ -20,8 +20,8 @@ require 'sensu-plugin'
|
|
20
20
|
require 'sensu-plugins-json-mutator/mutator'
|
21
21
|
|
22
22
|
class JSONMutator < Sensu::Mutator
|
23
|
-
GRAPHITE = /([
|
24
|
-
STATSD = /([
|
23
|
+
GRAPHITE = /([^\s]+)\s(.+).*/ # sample.key 42.13 1462521982
|
24
|
+
STATSD = /([^\:]+)\:(.*)\|.*/ # sample.key:42.13|kv
|
25
25
|
|
26
26
|
def mutate
|
27
27
|
lines = @event['check']['output'].lines
|