bc-prometheus-ruby 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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 497394e41dcec6a419e698b49f72026c29e190ce73a979688480dd7c80ce2ea7
4
- data.tar.gz: 3abc409db3e8ec50f14c38a76b675dd35372c7aed7ef0f33c0e9fa460b485683
3
+ metadata.gz: 7081f867f75f68a045ba992b66ea70ae9c473141e2079cc2d89452dc3dffcaf1
4
+ data.tar.gz: 839bfb88dc3907a1a1c55435e977591c5d55466cfcb391b15f490676c89cd4c5
5
5
  SHA512:
6
- metadata.gz: 99481a89a49f92cf24ffed584c8992ab72b46a3c1e048814d3f5fb99f91eadf861426506f71fe2a3370cde8b3d0294d42dcde6ee7909a398eafcc7f9914aeb88
7
- data.tar.gz: 6f9a793df2eb1e8d97aeaf98655a1cf0e180f5acbaf4e4968fbb7517635f42940350dc167cf52c28365ccfa1c53c58e4ffaf19e4c041ac35b95c551442d0e0b8
6
+ metadata.gz: b8bb47973c270e3418be1a4321f68321995a5a7c53370c46e72aae41d485911d7111c67f792b341f662f4d2ae7fcba07bd338c0a0c142754a12ba9e7f38d5454
7
+ data.tar.gz: e0ed22cff1348fdf596a7bef4c3c9885ec63621b0be30e7b0bf699fbc159a27cbff9215c506429f4612ef00e3f3072ae297f87c4bd9531f3874c8e17e9de6fad
@@ -2,6 +2,11 @@ Changelog for the bc-prometheus-ruby gem.
2
2
 
3
3
  ### Pending Release
4
4
 
5
+ ### 0.2.3
6
+
7
+ - Set default STDOUT logger to INFO level
8
+ - Fix bug with resque type collector
9
+
5
10
  ### 0.2.2
6
11
 
7
12
  - Fix missing inheritance for resque collector
@@ -110,6 +110,7 @@ module Bigcommerce
110
110
  else
111
111
  require 'logger'
112
112
  self.logger = ::Logger.new(STDOUT)
113
+ self.logger.level = ::Logger::Severity::INFO
113
114
  end
114
115
  end
115
116
 
@@ -40,11 +40,11 @@ module Bigcommerce
40
40
  # Collect resque metrics from input data
41
41
  #
42
42
  def collect_metrics(data:, labels: {})
43
- metric(:workers_total).observe(obj['workers_total'], labels)
44
- metric(:jobs_failed_total).observe(obj['jobs_failed_total'], labels)
45
- metric(:jobs_pending_total).observe(obj['jobs_pending_total'], labels)
46
- metric(:jobs_processed_total).observe(obj['jobs_processed_total'], labels)
47
- metric(:queues_total).observe(obj['queues_total'], labels)
43
+ metric(:workers_total).observe(data['workers_total'], labels)
44
+ metric(:jobs_failed_total).observe(data['jobs_failed_total'], labels)
45
+ metric(:jobs_pending_total).observe(data['jobs_pending_total'], labels)
46
+ metric(:jobs_processed_total).observe(data['jobs_processed_total'], labels)
47
+ metric(:queues_total).observe(data['queues_total'], labels)
48
48
 
49
49
  data['queues'].each do |name, size|
50
50
  metric(:queue_sizes).observe(size, labels.merge(queue: name))
@@ -17,6 +17,6 @@
17
17
  #
18
18
  module Bigcommerce
19
19
  module Prometheus
20
- VERSION = '0.2.2'
20
+ VERSION = '0.2.3'
21
21
  end
22
22
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: bc-prometheus-ruby
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.2
4
+ version: 0.2.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Shaun McCormick
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2020-02-07 00:00:00.000000000 Z
11
+ date: 2020-02-11 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rake