telltale 0.1.0 → 0.1.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (6) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +4 -0
  3. data/README.md +33 -0
  4. data/VERSION +1 -1
  5. data/lib/telltale.rb +1 -1
  6. metadata +1 -1
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 1b7021ce6b44df68ba8aac0c3072106ac3a73ffd
4
- data.tar.gz: c95c0a9856f51a4e5c017662a85917f45bac8432
3
+ metadata.gz: b3f430fa5cc97024ccd48df79272a985e7ac38c0
4
+ data.tar.gz: 6f4f841816fd08dbfc41686c4cce8a259178a85a
5
5
  SHA512:
6
- metadata.gz: d67a8ddc2d486db0321163d20d8b24eb916a22ce5f0621be0ede7bf28c4428b26ca84212775fda4bad94587f2159c34816d5aac209d402bc6a6e5fab164f12a6
7
- data.tar.gz: e9b646fda19c3a43404062c080f37bf06c983b75a7955a125c34feae903a3f198d73217776ba85ecc3dbc64548b257dd94944254b806342c5743ead4c613a465
6
+ metadata.gz: 14829cad71505623efd5689258094d6129e532d4318c387729787e077d9a828c4312e065a781e63587f72ac6522bb47639dd42c9c7520c93a5730b745678e4ea
7
+ data.tar.gz: 3ee53c67ee0dcba82576ce5ce35c38c184989e54948c9ce029bdc4e5e5c4506e695ff50c214b67c0de643bc8f19f8bd441ca7193cf5fe4477c8b43fbf6609516
data/CHANGELOG.md CHANGED
@@ -2,6 +2,10 @@
2
2
 
3
3
  ## master
4
4
 
5
+ ## v0.1.1
6
+
7
+ * Reporting disabled for test environment.
8
+
5
9
  ## v0.1
6
10
 
7
11
  * Initial implementation
data/README.md CHANGED
@@ -2,6 +2,23 @@
2
2
 
3
3
  Report Rails application metrics to OpenTSDB.
4
4
 
5
+ ## Instructions
6
+
7
+ Add the following line to your `Gemfile` and run `bundle install`.
8
+
9
+ ```ruby
10
+ gem 'telltale'
11
+ ```
12
+
13
+ Then set the environment variables and run your rails app:
14
+
15
+ ```sh
16
+ TELLTALE_OPENTSDB_HOST=metrics.domain.com bundle exec rails s
17
+ ```
18
+
19
+ It is recommended to use something like [dotenv](https://rubygems.org/gems/dotenv) to manage your app's
20
+ environment variables.
21
+
5
22
  ## Metrics
6
23
 
7
24
  These numbers are currently reported:
@@ -28,3 +45,19 @@ Telltale uses the following environment variables for configuration:
28
45
  * `TELLTALE_OPENTSDB_HOST`: The host to report to
29
46
  * `TELLTALE_OPENTSDB_PORT`: The port opentsdb listens on. Default is 4242
30
47
  * `TELLTALE_PREFIX`: Some prefix for the metric name. Default is `telltale`
48
+
49
+ ## Contributing
50
+
51
+ 1. Fork it
52
+ 2. Create your feature branch (`git checkout -b my-new-feature`)
53
+ 3. Commit your changes (`git commit -am 'Added some feature'`)
54
+ 4. Push to the branch (`git push origin my-new-feature`)
55
+ 5. Create new Pull Request
56
+
57
+ ## About
58
+
59
+ This Gem is maintained and funded by nine.ch.
60
+
61
+ ![nine.ch](https://blog.nine.ch/assets/logo.png)
62
+
63
+ We run your Linux server infrastructure – without interruptions, around the clock
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.1.0
1
+ 0.1.1
data/lib/telltale.rb CHANGED
@@ -25,7 +25,7 @@ module Telltale
25
25
  end
26
26
 
27
27
  def report?
28
- opentsdb_host.present?
28
+ opentsdb_host.present? && !Rails.env.test?
29
29
  end
30
30
 
31
31
  def tags(payload)
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: telltale
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Philippe Hassig