bipbip 0.4.0 → 0.4.1

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: a28d94daa5948e8d2d19b0470144fa3211df50ad
4
- data.tar.gz: b2f7c1572c720a2aafb2f22576aa0756a34e9c80
3
+ metadata.gz: 440ef769282f3bb2cc5e0dbb28c2a370344442a6
4
+ data.tar.gz: 6e0b30d526ed8e4f48dab8f28a6e72d45d05b6b2
5
5
  SHA512:
6
- metadata.gz: 9958916659974ec89bfd7cb4bb171b547f6aca391387a7b076f1172e43d9b8a8194e913216dcd68428286e0d22a4b25fd854f50f5f11635e5a80032156cf0dcf
7
- data.tar.gz: 958262bfea6d4af131f14de67a2edc77eacf5dff2d7b4ee77157b404422703e127ce20c380147bd7b3a22d0005bbbb402f1bf2fe8eaaced4b6d03f56d819884e
6
+ metadata.gz: 2f307bd0b5dc52f69bea87d2212b7f3344474aaac2023d014da7e79e21ffa9da95c5b6b2e5b51aa46ac47ea2234ead09190aefd7103da0ccc09866329f49d639
7
+ data.tar.gz: be6893be5535fe9afbf1ed8c4534c9900b82820afd9751baa9b099d8124a11bc562e6d6fce6beb7da6f306cc93a421ca32538e59787d28162f63cd4f081d2d9b
@@ -6,37 +6,19 @@ module Bipbip
6
6
 
7
7
  def metrics_schema
8
8
  [
9
- {:name => 'flushing_flushes', :type => 'counter', :unit => 'flushes'},
10
- {:name => 'flushing_total_ms', :type => 'gauge', :unit => 'ms'},
11
- {:name => 'flushing_average_ms', :type => 'gauge', :unit => 'ms'},
12
9
  {:name => 'flushing_last_ms', :type => 'gauge', :unit => 'ms'},
13
- {:name => 'btree_accesses', :type => 'gauge', :unit => 'accesses'},
14
10
  {:name => 'btree_misses', :type => 'gauge', :unit => 'misses'},
15
- {:name => 'btree_hits', :type => 'gauge', :unit => 'hits'},
16
- {:name => 'btree_resets', :type => 'gauge', :unit => 'resets'},
17
- {:name => 'cursors_totalOpen', :type => 'gauge', :unit => 'crs'},
18
- {:name => 'cursors_timedOut', :type => 'gauge', :unit => 'crs/sec'},
19
11
  {:name => 'op_inserts', :type => 'counter'},
20
12
  {:name => 'op_queries', :type => 'counter'},
21
13
  {:name => 'op_updates', :type => 'counter'},
22
14
  {:name => 'op_deletes', :type => 'counter'},
23
15
  {:name => 'op_getmores', :type => 'counter'},
24
16
  {:name => 'op_commands', :type => 'counter'},
25
- {:name => 'asserts_regular', :type => 'counter'},
26
- {:name => 'asserts_warning', :type => 'counter'},
27
- {:name => 'asserts_msg', :type => 'counter'},
28
- {:name => 'asserts_user', :type => 'counter'},
29
- {:name => 'asserts_rollover', :type => 'counter'},
30
- {:name => 'connections_available', :type => 'gauge'},
31
17
  {:name => 'connections_current', :type => 'gauge'},
32
18
  {:name => 'mem_resident', :type => 'gauge', :unit => 'MB'},
33
- {:name => 'mem_virtual', :type => 'gauge', :unit => 'MB'},
34
19
  {:name => 'mem_mapped', :type => 'gauge', :unit => 'MB'},
35
20
  {:name => 'mem_pagefaults', :type => 'gauge', :unit => 'faults'},
36
- {:name => 'globalLock_ratio', :type => 'gauge', :unit => '%'},
37
21
  {:name => 'globalLock_currentQueue', :type => 'gauge'},
38
- {:name => 'globalLock_activeClients', :type => 'gauge'},
39
- {:name => 'uptime', :type => 'counter', :unit => 's'},
40
22
  ]
41
23
  end
42
24
 
@@ -53,37 +35,19 @@ module Bipbip
53
35
  mongoStats = mongo.command('serverStatus' => 1)
54
36
 
55
37
  {
56
- 'btree_accesses' => mongoStats['indexCounters']['accesses'].to_i,
57
38
  'btree_misses' => mongoStats['indexCounters']['misses'].to_i,
58
- 'btree_hits' => mongoStats['indexCounters']['hits'].to_i,
59
- 'btree_resets' => mongoStats['indexCounters']['resets'].to_i,
60
- 'flushing_flushes' => mongoStats['backgroundFlushing']['flushes'].to_i,
61
- 'flushing_total_ms' => mongoStats['backgroundFlushing']['total_ms'].to_i,
62
- 'flushing_average_ms' => mongoStats['backgroundFlushing']['average_ms'].to_i,
63
39
  'flushing_last_ms' => mongoStats['backgroundFlushing']['last_ms'].to_i,
64
- 'cursors_totalOpen' => mongoStats['cursors']['totalOpen'].to_i,
65
- 'cursors_timedOut' => mongoStats['cursors']['timedOut'].to_i,
66
40
  'op_inserts' => mongoStats['opcounters']['insert'].to_i,
67
41
  'op_queries' => mongoStats['opcounters']['query'].to_i,
68
42
  'op_updates' => mongoStats['opcounters']['update'].to_i,
69
43
  'op_deletes' => mongoStats['opcounters']['delete'].to_i,
70
44
  'op_getmores' => mongoStats['opcounters']['getmore'].to_i,
71
45
  'op_commands' => mongoStats['opcounters']['command'].to_i,
72
- 'asserts_regular' => mongoStats['asserts']['regular'].to_i,
73
- 'asserts_warning' => mongoStats['asserts']['warning'].to_i,
74
- 'asserts_msg' => mongoStats['asserts']['msg'].to_i,
75
- 'asserts_user' => mongoStats['asserts']['user'].to_i,
76
- 'asserts_rollover' => mongoStats['asserts']['rollovers'].to_i,
77
- 'connections_available' => mongoStats['connections']['available'].to_i,
78
46
  'connections_current' => mongoStats['connections']['current'].to_i,
79
47
  'mem_resident' => mongoStats['mem']['resident'].to_i,
80
- 'mem_virtual' => mongoStats['mem']['virtual'].to_i,
81
48
  'mem_mapped' => mongoStats['mem']['mapped'].to_i,
82
49
  'mem_pagefaults' => mongoStats['extra_info']['page_faults'],
83
- 'globalLock_ratio' => (mongoStats['globalLock']['lockTime'] / mongoStats['globalLock']['totalTime'] * 100).to_f,
84
50
  'globalLock_currentQueue' => mongoStats['globalLock']['currentQueue']['total'].to_i,
85
- 'globalLock_activeClients' => mongoStats['globalLock']['activeClients']['total'].to_i,
86
- 'uptime' => mongoStats['uptime'].to_i,
87
51
  }
88
52
  end
89
53
  end
@@ -1,3 +1,3 @@
1
1
  module Bipbip
2
- VERSION = '0.4.0'
2
+ VERSION = '0.4.1'
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.4.0
4
+ version: 0.4.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Cargo Media