bipbip 0.7.25 → 0.8.0

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
- SHA1:
3
- metadata.gz: ab19d2aa6ed6eab40e0bbd7a1fcdec314300d5d8
4
- data.tar.gz: a9c1e88fbc9c362c57e38fadd0dc40dfc20eff02
2
+ SHA256:
3
+ metadata.gz: ab7a098ddabb2cf306f4fa8213113e0f0a7ffdc3c9bcbe57685d585ebaca7ffc
4
+ data.tar.gz: 32d443b82e349a18ed117b004511ef343909c2d119177b4b33c20b2d1db464be
5
5
  SHA512:
6
- metadata.gz: d9bad3db87ec6acced08f36d8171e5e5f6efad9c06647941dff093c4636b0f0d6e092356ec3a160a4d8edb7f35e170f792f1c4507f7dbfae6af6a815922d2ea9
7
- data.tar.gz: ed9b55f41ebae5882def9fb0b45d06b30056529fa62376ce13034df9fbe37e6556524d60ab8a9e36829b5db7df3bd934a55ac7907c345b258c56502e1fb2f66e
6
+ metadata.gz: 222ba60f6e697ad07a557351ded0bfc039fc6dd75062d750d2ec365c6a3a24a29b9700f4e25c16f1907966f4a9e67a4e3a473456c263c28e52b766701c038f30
7
+ data.tar.gz: e5adf2ff14add2275c3b7654c2ee98bcfdf5b1995c66ff0708732df9cbcfa4747470cfa57522b65947189c96a003179a91cc1581f7c915b604c62978ef0c5f30
data/README.md CHANGED
@@ -9,12 +9,23 @@ Plugins for different metrics available.
9
9
 
10
10
  Installation
11
11
  ------------
12
+
13
+ ### Gem
12
14
  ```
13
15
  gem install bipbip
14
16
  ```
15
17
 
18
+ ### Docker
19
+ ```
20
+ docker run cargomedia/bipbip
21
+ ```
22
+ Containerized bipbip runs on default with `/opt/bipbip/etc/config,yml`. Replace it by mounting or copying custom one.
23
+
24
+ ### Puppet
16
25
  There's a [puppet module for Debian](https://github.com/cargomedia/puppet-packages/tree/master/modules/bipbip) available to install *bipbip* as a system daemon.
17
26
 
27
+
28
+
18
29
  ### Configuration
19
30
  Pass the path to your configuration file to `bipbip` using the `-c` command line argument.
20
31
  ```sh
@@ -123,30 +134,17 @@ For a complete example see [cargomedia/bipbip-random-example](https://github.com
123
134
 
124
135
  Development
125
136
  -----------
126
-
127
- Install dependencies:
137
+ *Currently specs depends on live services (mysql, memcache, redis)*
128
138
  ```
139
+ docker-compose build bipbip
140
+ docker-compose run --volume $(pwd):/opt/bipbip bipbip bash
129
141
  bundle install
142
+ scripts/test.sh
130
143
  ```
131
144
 
132
- Run tests:
133
- ```
134
- bundle exec rake spec
135
- ```
136
-
137
- There's also a **Vagrant environment** available with necessary dependencies pre-installed.
138
- To use it, launch a box:
139
- ```
140
- vagrant up
141
- vagrant ssh
142
- ```
143
- Then run the `bipbip` binary inside:
144
- ```
145
- /vagrant/bin/bipbip
146
- ```
147
-
148
- Release a new version:
145
+ Release new version
146
+ -------------------
149
147
 
150
- 1. Bump the version in `lib/bipbip/version.rb`, merge to master.
151
- 2. Push a new tag to master.
152
- 3. Release to RubyGems with `bundle exec rake release`.
148
+ 1. Bump the version in `lib/bipbip/version.rb`, get it merged to master.
149
+ 2. Travis will push new `cargomedia/bipbip` docker image
150
+ 3. Release gem using `bundle exec rake release`
@@ -74,7 +74,7 @@ module Bipbip
74
74
  end
75
75
 
76
76
  def nodes_stats
77
- connection.nodes.stats(node_id: '_local')
77
+ connection.nodes.stats
78
78
  end
79
79
 
80
80
  def stats_sum(keys)
@@ -12,7 +12,11 @@ module Bipbip
12
12
  # @return [Hash]
13
13
  def _fetch_apc_stats
14
14
  authority = config['host'].to_s + ':' + config['port'].to_s
15
- path = File.join(Bipbip::Helper.data_path, 'apc-status.php')
15
+ path = if config.key?('path')
16
+ config['path'].to_s
17
+ else
18
+ File.join(Bipbip::Helper.data_path, 'apc-status.php')
19
+ end
16
20
 
17
21
  env_backup = ENV.to_hash
18
22
  ENV['REQUEST_METHOD'] = 'GET'
@@ -14,7 +14,11 @@ module Bipbip
14
14
 
15
15
  def monitor
16
16
  authority = config['host'].to_s + ':' + config['port'].to_s
17
- path = File.join(Bipbip::Helper.data_path, 'php-opcache-status.php')
17
+ path = if config.key?('path')
18
+ config['path'].to_s
19
+ else
20
+ File.join(Bipbip::Helper.data_path, 'php-opcache-status.php')
21
+ end
18
22
 
19
23
  env_backup = ENV.to_hash
20
24
  ENV['REQUEST_METHOD'] = 'GET'
@@ -1,3 +1,3 @@
1
1
  module Bipbip
2
- VERSION = '0.7.25'.freeze
2
+ VERSION = '0.8.0'.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.7.25
4
+ version: 0.8.0
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: 2017-12-05 00:00:00.000000000 Z
13
+ date: 2018-01-09 00:00:00.000000000 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: copperegg-revealmetrics
@@ -172,14 +172,14 @@ dependencies:
172
172
  requirements:
173
173
  - - "~>"
174
174
  - !ruby/object:Gem::Version
175
- version: 1.0.6
175
+ version: 5.0.4
176
176
  type: :runtime
177
177
  prerelease: false
178
178
  version_requirements: !ruby/object:Gem::Requirement
179
179
  requirements:
180
180
  - - "~>"
181
181
  - !ruby/object:Gem::Version
182
- version: 1.0.6
182
+ version: 5.0.4
183
183
  - !ruby/object:Gem::Dependency
184
184
  name: janus_gateway
185
185
  requirement: !ruby/object:Gem::Requirement
@@ -358,7 +358,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
358
358
  version: '0'
359
359
  requirements: []
360
360
  rubyforge_project:
361
- rubygems_version: 2.2.2
361
+ rubygems_version: 2.7.3
362
362
  signing_key:
363
363
  specification_version: 4
364
364
  summary: Gather services data and store in CopperEgg