bipbip 0.6.15 → 0.6.16

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: 82726bcc5fd6f624a877613fb5d4bb8cd2e1acb6
4
- data.tar.gz: 03b9759e811c865c7ae51996400f727e69b934c8
3
+ metadata.gz: 2dc76f79a792a33eb5c20fb1dcd06a6d1b193f51
4
+ data.tar.gz: 3d53eede954a6c72b96508f5c05eaa749b3bbe03
5
5
  SHA512:
6
- metadata.gz: 46efabceaf1e0745e5b4a2cf06ba95a73fb750aeab3d0ace00aae45123b9e962c5327c89e40897c7fef8e912af60f91cbc01916b498a1f034dcb9c9747772407
7
- data.tar.gz: 7d03c641db315a6c69f57c866ee03b6a1ae86e6a03b10763b5c2557b7e290c81b069eea66ece0be14b8a477c3a36b833f1bdb35104b812d73782a9f24da6db02
6
+ metadata.gz: a0f5ddc0067d1f3f6a5205e424d93753a3ea806cc4dd65e4c8373da538fce7e16a4f82615ade98dcd708ac9c3eae8fde0f5ab7359362fb812ade274a5c91536e
7
+ data.tar.gz: b2d6c815881e44fc0b6e78ab97b8e82f810532ffe91ff7305715a8df1b6451d50b9b4d3afcf83d1625e49411270d987464683b8d9d31177e822f16ce39a59cef
@@ -6,7 +6,8 @@ module Bipbip
6
6
  class Plugin::Gearman < Plugin
7
7
  def metrics_schema
8
8
  [
9
- { name: 'jobs_queued_total', type: 'gauge', unit: 'Jobs' }
9
+ { name: 'jobs_queued_total', type: 'gauge', unit: 'Jobs' },
10
+ { name: 'jobs_active_total', type: 'gauge', unit: 'Jobs' }
10
11
  ]
11
12
  end
12
13
 
@@ -15,13 +16,16 @@ module Bipbip
15
16
  stats = gearman.status
16
17
 
17
18
  jobs_queued_total = 0
19
+ jobs_active_total = 0
18
20
  stats.each do |_function_name, data|
19
- data.each do |queue, _stats|
20
- jobs_queued_total += queue.to_i
21
- end
21
+ jobs_queued_total += data[:queue].to_i
22
+ jobs_active_total += data[:active].to_i
22
23
  end
23
24
 
24
- { jobs_queued_total: jobs_queued_total }
25
+ {
26
+ jobs_queued_total: jobs_queued_total,
27
+ jobs_active_total: jobs_active_total
28
+ }
25
29
  end
26
30
  end
27
31
  end
@@ -1,3 +1,3 @@
1
1
  module Bipbip
2
- VERSION = '0.6.15'.freeze
2
+ VERSION = '0.6.16'.freeze
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: bipbip
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.6.15
4
+ version: 0.6.16
5
5
  platform: ruby
6
6
  authors:
7
7
  - Cargo Media
@@ -10,7 +10,7 @@ authors:
10
10
  autorequire:
11
11
  bindir: bin
12
12
  cert_chain: []
13
- date: 2016-02-09 00:00:00.000000000 Z
13
+ date: 2016-03-16 00:00:00.000000000 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: copperegg-revealmetrics
@@ -74,14 +74,14 @@ dependencies:
74
74
  requirements:
75
75
  - - "~>"
76
76
  - !ruby/object:Gem::Version
77
- version: 3.0.7
77
+ version: 4.0.5
78
78
  type: :runtime
79
79
  prerelease: false
80
80
  version_requirements: !ruby/object:Gem::Requirement
81
81
  requirements:
82
82
  - - "~>"
83
83
  - !ruby/object:Gem::Version
84
- version: 3.0.7
84
+ version: 4.0.5
85
85
  - !ruby/object:Gem::Dependency
86
86
  name: resque
87
87
  requirement: !ruby/object:Gem::Requirement
@@ -314,7 +314,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
314
314
  version: '0'
315
315
  requirements: []
316
316
  rubyforge_project:
317
- rubygems_version: 2.5.0
317
+ rubygems_version: 2.5.1
318
318
  signing_key:
319
319
  specification_version: 4
320
320
  summary: Gather services data and store in CopperEgg