bipbip 0.2.1 → 0.2.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +3 -0
- data/lib/bipbip/plugin/php_fpm.rb +23 -0
- data/lib/bipbip/version.rb +1 -1
- metadata +2 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 433fdde4a9b2144a2a91baae4db5cbaa8be7c1aa
|
4
|
+
data.tar.gz: 5c4dd948262df1f2316671762f79ec736b3af8f4
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 5a5e22ca08f87579060db60e031c86316ded9b2f8eeba1cec4735e0d4778084ad9ce381e15d47dc13dff3f3e2bcd864f8e0e12970977613f5dbf7b9d37afe7c5
|
7
|
+
data.tar.gz: b1754c55a86c4eb27baa658a73654e91f43c83495019fcf50c96baac5dd674f52460198192c2ad5ac34a8de9b91510f585a5bc6ce157ed98b3e3dbc528a838d0
|
data/README.md
CHANGED
@@ -0,0 +1,23 @@
|
|
1
|
+
module Bipbip
|
2
|
+
|
3
|
+
class Plugin::PhpFpm < Plugin
|
4
|
+
|
5
|
+
def metrics_schema
|
6
|
+
[
|
7
|
+
{:name => 'accepted conn', :type => 'counter', :unit => 'Connections'},
|
8
|
+
{:name => 'listen queue', :type => 'gauge', :unit => 'Connections'},
|
9
|
+
{:name => 'active processes', :type => 'gauge', :unit => 'Processes'},
|
10
|
+
]
|
11
|
+
end
|
12
|
+
|
13
|
+
def monitor
|
14
|
+
uri = URI.parse(config['url'])
|
15
|
+
response = Net::HTTP.get_response(uri)
|
16
|
+
raise "Invalid response from server at #{config['url']}" unless response.code == '200'
|
17
|
+
|
18
|
+
status = JSON.parse(response.body)
|
19
|
+
|
20
|
+
status.reject{|k, v| !metrics_names.include?(k)}
|
21
|
+
end
|
22
|
+
end
|
23
|
+
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.2.
|
4
|
+
version: 0.2.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Cargo Media
|
@@ -127,6 +127,7 @@ files:
|
|
127
127
|
- lib/bipbip/plugin/network.rb
|
128
128
|
- lib/bipbip/plugin/nginx.rb
|
129
129
|
- lib/bipbip/plugin/php_apc.rb
|
130
|
+
- lib/bipbip/plugin/php_fpm.rb
|
130
131
|
- lib/bipbip/plugin/redis.rb
|
131
132
|
- lib/bipbip/plugin.rb
|
132
133
|
- lib/bipbip/storage/copperegg.rb
|