bipbip 0.5.4 → 0.5.5
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +2 -0
- data/lib/bipbip/plugin/postfix.rb +24 -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: c7106a05032baff36882166718dab6a9f841a9ae
|
4
|
+
data.tar.gz: 05cc7a22a5f922d3bb17c549c84cf246c02c937f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 53e55ed811dd59bb2b737eaf8c87e3807adb4ad32ccc68eeaf4abe9da4b223e754d2974a7923f6c5dbaaddc323a80aad9a225e27a4cbed7e880751af9bd2a22a
|
7
|
+
data.tar.gz: 677edcab879707381bc73ef1dd64b2fb308fd336bd0a3d2cd8e1dcc94de1b2b3aae2b7c9a67149d6c2267bd8af2c44e87f19f53e5f61aaf4886dd7b167fa54af
|
data/README.md
CHANGED
@@ -0,0 +1,24 @@
|
|
1
|
+
module Bipbip
|
2
|
+
|
3
|
+
class Plugin::Postfix < Plugin
|
4
|
+
|
5
|
+
def metrics_schema
|
6
|
+
[
|
7
|
+
{:name => 'mails_queued_total', :type => 'gauge', :unit => 'Mails'},
|
8
|
+
]
|
9
|
+
end
|
10
|
+
|
11
|
+
def monitor
|
12
|
+
queue_counter = /(\d+) Request+s?\.$/.match(postqueue)
|
13
|
+
{
|
14
|
+
'mails_queued_total' => queue_counter.nil? ? 0 : queue_counter[1].to_i
|
15
|
+
}
|
16
|
+
end
|
17
|
+
|
18
|
+
private
|
19
|
+
|
20
|
+
def postqueue(args = '-p')
|
21
|
+
`postqueue #{args}`
|
22
|
+
end
|
23
|
+
end
|
24
|
+
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.5.
|
4
|
+
version: 0.5.5
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Cargo Media
|
@@ -223,6 +223,7 @@ files:
|
|
223
223
|
- lib/bipbip/plugin/network.rb
|
224
224
|
- lib/bipbip/plugin/nginx.rb
|
225
225
|
- lib/bipbip/plugin/php_apc.rb
|
226
|
+
- lib/bipbip/plugin/postfix.rb
|
226
227
|
- lib/bipbip/plugin/redis.rb
|
227
228
|
- lib/bipbip/plugin/resque.rb
|
228
229
|
- lib/bipbip/storage.rb
|