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 +4 -4
- data/lib/bipbip/plugin/gearman.rb +9 -5
- data/lib/bipbip/version.rb +1 -1
- metadata +5 -5
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 2dc76f79a792a33eb5c20fb1dcd06a6d1b193f51
|
4
|
+
data.tar.gz: 3d53eede954a6c72b96508f5c05eaa749b3bbe03
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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
|
-
|
20
|
-
|
21
|
-
end
|
21
|
+
jobs_queued_total += data[:queue].to_i
|
22
|
+
jobs_active_total += data[:active].to_i
|
22
23
|
end
|
23
24
|
|
24
|
-
{
|
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
|
data/lib/bipbip/version.rb
CHANGED
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.
|
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-
|
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:
|
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:
|
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.
|
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
|