foreman_graphite 0.0.1 → 0.0.2

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: 7d0eb25b802ca5705218cca5e7c5d89a088bfa25
4
- data.tar.gz: 60250ec6c03458a99c97280804010c639017c50e
3
+ metadata.gz: dea1b6f1a05f27376578a57086f15a38787bb758
4
+ data.tar.gz: 01b3b50d25919e07c103184f50480a75c9520b27
5
5
  SHA512:
6
- metadata.gz: d9449d52d41a0e4d4ed5a28afbc6d942debe03bbdda4f2ee6ce45b12ad4745b384e66df633a9fc90ecb9fcdf4feb1512288f1167cea86a79e389d64b7df8c4b3
7
- data.tar.gz: 7a5466425465dceb07328a76ec3a1225a44965abe95f98f5503a2e8278505fa8468413fbb9876c93b161d3caa87321cbe47d7e88d356178677a806ae8fb90f2e
6
+ metadata.gz: 2c1843f1053da2828ecfa122c482d12e6b1ba68c29db53084c84ce783c11225fe28f964e63c756f1f8a550fd76670bf8370bce1b963b3ea80502650d85915c12
7
+ data.tar.gz: fa5cf3ede36341e776db3bde74b055487fd9a4f6e8f164bd7e72d1f9ba4261735e2fb59a7fa32755aff289cdb854696303bcfcb47ee3d02953ba3135a1786bfd
data/README.md CHANGED
@@ -15,12 +15,12 @@ Example config file:
15
15
  ```yaml
16
16
  :graphite:
17
17
  :server: graphite:2003
18
- # results are aggregated in n seconds slices, defaults to 60
19
- :slice: 60
20
- # send to graphite every n seconds - defaults to 60
21
- :interval: 60
22
- # set the max age in seconds for records reanimation, defaults to 4 * 60 * 60
23
- :cache: 4 * 60 * 60
18
+ # results are aggregated in n seconds slices, defaults to 0
19
+ #:slice: 60
20
+ # send to graphite every n seconds - defaults to 0
21
+ #:interval: 60
22
+ # set the max age in seconds for records reanimation, defaults to 0
23
+ #:cache: 4 * 60 * 60
24
24
  ```
25
25
 
26
26
  ## Copyright
@@ -2,10 +2,10 @@
2
2
  # Copy to config/settings.plugins.d/foreman_graphite.yaml
3
3
  :graphite:
4
4
  :server: graphite:2003
5
- # results are aggregated in n seconds slices, defaults to 60
6
- :slice: 60
7
- # send to graphite every n seconds - defaults to 60
8
- :interval: 60
9
- # set the max age in seconds for records reanimation, defaults to 4 * 60 * 60
10
- :cache: 4 * 60 * 60
5
+ # results are aggregated in n seconds slices, defaults to 60
6
+ :slice: 60
7
+ # send to graphite every n seconds - defaults to 60
8
+ :interval: 60
9
+ # set the max age in seconds for records reanimation, defaults to 4 * 60 * 60
10
+ :cache: 4 * 60 * 60
11
11
 
@@ -1,6 +1,6 @@
1
+ module ForemanGraphite
2
+ end
3
+
1
4
  require 'graphite-api'
2
5
  require 'foreman_graphite/client'
3
6
  require 'foreman_graphite/engine'
4
-
5
- module ForemanGraphite
6
- end
@@ -7,9 +7,9 @@ class ForemanGraphite::Client
7
7
  @client = GraphiteAPI.new(
8
8
  :graphite => (opts[:server] || "0.0.0.0:2003"), # required argument
9
9
  :prefix => ['theforeman', fqdn], # add example.prefix to each key
10
- :slice => (opts[:slice] || 60), # results are aggregated in 60 seconds slices
11
- :interval => (opts[:interval] || 60), # send to graphite every 60 seconds
12
- :cache => (opts[:cache] || 4 * 60 * 60) # set the max age in seconds for records reanimation
10
+ :slice => (opts[:slice] || 0), # results are aggregated in 60 seconds slices
11
+ :interval => (opts[:interval] || 0), # send to graphite every 60 seconds
12
+ :cache => (opts[:cache] || 0) # set the max age in seconds for records reanimation
13
13
  )
14
14
  end
15
15
 
@@ -1,3 +1,3 @@
1
1
  module ForemanGraphite
2
- VERSION = "0.0.1"
2
+ VERSION = "0.0.2"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: foreman_graphite
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.1
4
+ version: 0.0.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ohad Levy
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-09-24 00:00:00.000000000 Z
11
+ date: 2014-10-14 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: graphite-api