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 +4 -4
- data/README.md +6 -6
- data/foreman_graphite.yaml.example +6 -6
- data/lib/foreman_graphite.rb +3 -3
- data/lib/foreman_graphite/client.rb +3 -3
- data/lib/foreman_graphite/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: dea1b6f1a05f27376578a57086f15a38787bb758
|
4
|
+
data.tar.gz: 01b3b50d25919e07c103184f50480a75c9520b27
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
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
|
-
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
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
|
|
data/lib/foreman_graphite.rb
CHANGED
@@ -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] ||
|
11
|
-
:interval => (opts[:interval] ||
|
12
|
-
:cache => (opts[:cache] ||
|
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
|
|
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.
|
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-
|
11
|
+
date: 2014-10-14 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: graphite-api
|