bipbip 0.7.25 → 0.8.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +5 -5
- data/README.md +20 -22
- data/lib/bipbip/plugin/elasticsearch.rb +1 -1
- data/lib/bipbip/plugin/fastcgi_php_apc.rb +5 -1
- data/lib/bipbip/plugin/fastcgi_php_opcache.rb +5 -1
- data/lib/bipbip/version.rb +1 -1
- metadata +5 -5
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
|
-
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
2
|
+
SHA256:
|
|
3
|
+
metadata.gz: ab7a098ddabb2cf306f4fa8213113e0f0a7ffdc3c9bcbe57685d585ebaca7ffc
|
|
4
|
+
data.tar.gz: 32d443b82e349a18ed117b004511ef343909c2d119177b4b33c20b2d1db464be
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
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
|
-
|
|
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`,
|
|
151
|
-
2.
|
|
152
|
-
3. 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`
|
|
@@ -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 =
|
|
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 =
|
|
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'
|
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.
|
|
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:
|
|
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:
|
|
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:
|
|
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.
|
|
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
|