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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 4e8d111f631f5ced812892285a6a2351037e6581
4
- data.tar.gz: 71bc31de4d017bf3e0b66e00ee10ff6d76065f0c
3
+ metadata.gz: c7106a05032baff36882166718dab6a9f841a9ae
4
+ data.tar.gz: 05cc7a22a5f922d3bb17c549c84cf246c02c937f
5
5
  SHA512:
6
- metadata.gz: 4cb3725b453d86b4cb20d16733234895acce38d4cebbe8887bb08779363e4fd3e158513ffd610b30de96e490562aa99ec8a407e68b9a69c33580d9758f76e49c
7
- data.tar.gz: 902e34e3fb0cf6fa6dd03060eb20a43eceb4156c7a98dd75f628058c26e811281cdbe452ee616cde1c40ea4bd98a3871d46af2160fc9f49a8e8371241e8fc85d
6
+ metadata.gz: 53e55ed811dd59bb2b737eaf8c87e3807adb4ad32ccc68eeaf4abe9da4b223e754d2974a7923f6c5dbaaddc323a80aad9a225e27a4cbed7e880751af9bd2a22a
7
+ data.tar.gz: 677edcab879707381bc73ef1dd64b2fb308fd336bd0a3d2cd8e1dcc94de1b2b3aae2b7c9a67149d6c2267bd8af2c44e87f19f53e5f61aaf4886dd7b167fa54af
data/README.md CHANGED
@@ -103,6 +103,8 @@ services:
103
103
  -
104
104
  name: segfault
105
105
  regexp: segfault
106
+ -
107
+ plugin: postfix
106
108
  ```
107
109
 
108
110
  Optional configuration common to all plugins:
@@ -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
@@ -1,3 +1,3 @@
1
1
  module Bipbip
2
- VERSION = '0.5.4'
2
+ VERSION = '0.5.5'
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.5.4
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