fluent-plugin-jfrog-metrics 0.2.2 → 0.2.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile.lock +1 -1
- data/fluent-plugin-jfrog-metrics.gemspec +1 -1
- data/lib/fluent/plugin/elastic_metrics_parser.rb +2 -2
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 21102bd90a5d5cb08bc3277e641dc23d00f11a6beb7d4bd5c1256efc1b354d30
|
4
|
+
data.tar.gz: 6bd16774a36b1d1ffa6f1286e43e11915aae029faae8ba9eb6f0df93b240b639
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 28b40128a2fa43f3d74d78bdfe6e322adcafd70492cf4eb6363990596c02e78b7c0e13391ccef7a8771fe96e443f9ab27060d7e71f5e87297f95c8262c5b63f4
|
7
|
+
data.tar.gz: 7cd90e2cd932bf0cd2c0717cea0711cff814d5403d7e3be9cd7ccefd8611f717af6afa60f334d2e579d3f72c5a74a1c7a0fc654ba8d6dd658db980f90727e49a
|
data/Gemfile.lock
CHANGED
@@ -3,7 +3,7 @@ $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
|
|
3
3
|
|
4
4
|
Gem::Specification.new do |spec|
|
5
5
|
spec.name = 'fluent-plugin-jfrog-metrics'
|
6
|
-
spec.version = '0.2.
|
6
|
+
spec.version = '0.2.3'
|
7
7
|
spec.authors = ['MahithaB, VasukiN, giri-vsr']
|
8
8
|
spec.email = ['cpe-support@jfrog.com']
|
9
9
|
|
@@ -18,7 +18,7 @@ class ElasticMetricsParser < BaseMetricsParser
|
|
18
18
|
hash_data_with_dim_fields = {}
|
19
19
|
metric_name, additional_dims, metric_val_and_time = interim_data.match(/(.*){(.*)}(.*)/i).captures
|
20
20
|
additional_dims.split(/,/).map do |interim_dim_data|
|
21
|
-
hash_data_with_dim_fields[prefix + separator + interim_dim_data.split(/=/)[0]] = interim_dim_data.split(/=/)[1].gsub(/"/, '') if interim_dim_data =~ /=/
|
21
|
+
hash_data_with_dim_fields[prefix + separator + "label" + separator + interim_dim_data.split(/=/)[0]] = interim_dim_data.split(/=/)[1].gsub(/"/, '') if interim_dim_data =~ /=/
|
22
22
|
end
|
23
23
|
hash_data_with_dim_fields[prefix + separator + metric_name] = metric_val_and_time.strip.split[0] =~ /^\S*\.\S*$/ ? metric_val_and_time.strip.split[0].to_f : metric_val_and_time.strip.split[0].to_i
|
24
24
|
hash_data_with_labels << hash_data_with_dim_fields
|
@@ -29,6 +29,6 @@ class ElasticMetricsParser < BaseMetricsParser
|
|
29
29
|
end
|
30
30
|
end
|
31
31
|
hash_data_array << hash_data
|
32
|
-
hash_data_array << hash_data_with_labels
|
32
|
+
(hash_data_array << hash_data_with_labels).flatten!
|
33
33
|
end
|
34
34
|
end
|