instrumental_tools 0.4.0 → 0.4.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
data/README.md CHANGED
@@ -1,16 +1,18 @@
1
1
  # Instrumental Tools
2
2
 
3
- A collection of tools for use with Instrumental ([www.instrumental.com](http://www.instrumentalapp.com/))
3
+ A collection of scripts useful in monitoring servers and services with Instrumental ([www.instrumentalapp.com](http://www.instrumentalapp.com/)).
4
4
 
5
5
  ## instrument_server
6
6
 
7
- Use to collect various monitoring statistics of a server. Execute with:
7
+ Use to monitor server activity by collecting information on CPU and memory usage, disk IO, filesystem usage, etc. Execute with:
8
8
 
9
9
  ```sh
10
- instrument_server -k <INSTRUMENTAL_API_KEY>
10
+ instrument_server -k <API_KEY>
11
11
  ```
12
12
 
13
- Mac OS note: Due to a bug in Ruby, instrument_server can occasionally deadlock ([bug report](http://bugs.ruby-lang.org/issues/5811)).
13
+ The API key can also be provided by setting the INSTRUMENTAL_TOKEN environment variable, which eliminates the need to supply the key via command line option.
14
+
15
+ NOTE for Mac OS users: Due to a bug in Ruby, instrument_server can occasionally deadlock ([bug report](http://bugs.ruby-lang.org/issues/5811)).
14
16
 
15
17
  ## instrumental
16
18
 
@@ -23,7 +25,7 @@ See all options with: `instrumental --help`
23
25
  Collect statistics on commit counts in a given git repo. Execute in the repo directory with:
24
26
 
25
27
  ```sh
26
- gitstrumental [INSTRUMENTAL_API_KEY]
28
+ gitstrumental [API_KEY]
27
29
  ```
28
30
 
29
31
  ## Capistrano Integration
@@ -34,7 +36,7 @@ deploy is finished. Additionally, you will need to add a new variable
34
36
  to your capistrano file.
35
37
 
36
38
  ```ruby
37
- set :instrumental_key, "YOUR_KEY_HERE"
39
+ set :instrumental_key, "API_KEY"
38
40
  ```
39
41
 
40
42
  The following configuration will be added:
@@ -352,10 +352,7 @@ options = {
352
352
  }
353
353
 
354
354
  option_parser = OptionParser.new do |opts|
355
- opts.banner = "Usage: instrument_server [-k API_KEY] [options] [-d #{ServerController::COMMANDS.join('|')}]"
356
- opts.on('-H', '--hostname HOSTNAME', 'Hostname to report as') do |hostname|
357
- options[:hostname] = hostname
358
- end
355
+ opts.banner = "Usage: instrument_server -k API_KEY [options] [-d #{ServerController::COMMANDS.join('|')}]"
359
356
  opts.on('-k', '--api_key API_KEY', 'API key of your project') do |api_key|
360
357
  options[:api_key] = api_key
361
358
  end
@@ -364,6 +361,9 @@ option_parser = OptionParser.new do |opts|
364
361
  options[:collector] = address
365
362
  options[:port] = port if port
366
363
  end
364
+ opts.on('-H', '--hostname HOSTNAME', "Hostname to report as (default #{options[:hostname]})") do |hostname|
365
+ options[:hostname] = hostname
366
+ end
367
367
  opts.on('-d', '--daemonize', 'Run as daemon') do
368
368
  options[:daemon] = true
369
369
  end
@@ -1,5 +1,5 @@
1
1
  module Instrumental
2
2
  module Tools
3
- VERSION = "0.4.0"
3
+ VERSION = "0.4.1"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: instrumental_tools
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.0
4
+ version: 0.4.1
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -16,7 +16,7 @@ date: 2012-01-11 00:00:00.000000000 Z
16
16
  dependencies:
17
17
  - !ruby/object:Gem::Dependency
18
18
  name: json
19
- requirement: &70277493718520 !ruby/object:Gem::Requirement
19
+ requirement: &70127299346760 !ruby/object:Gem::Requirement
20
20
  none: false
21
21
  requirements:
22
22
  - - ! '>='
@@ -24,10 +24,10 @@ dependencies:
24
24
  version: '0'
25
25
  type: :runtime
26
26
  prerelease: false
27
- version_requirements: *70277493718520
27
+ version_requirements: *70127299346760
28
28
  - !ruby/object:Gem::Dependency
29
29
  name: instrumental_agent
30
- requirement: &70277493718000 !ruby/object:Gem::Requirement
30
+ requirement: &70127299344700 !ruby/object:Gem::Requirement
31
31
  none: false
32
32
  requirements:
33
33
  - - ! '>='
@@ -35,10 +35,10 @@ dependencies:
35
35
  version: '0.5'
36
36
  type: :runtime
37
37
  prerelease: false
38
- version_requirements: *70277493718000
38
+ version_requirements: *70127299344700
39
39
  - !ruby/object:Gem::Dependency
40
40
  name: pidly
41
- requirement: &70277493717520 !ruby/object:Gem::Requirement
41
+ requirement: &70127299342960 !ruby/object:Gem::Requirement
42
42
  none: false
43
43
  requirements:
44
44
  - - ! '>='
@@ -46,10 +46,10 @@ dependencies:
46
46
  version: 0.1.3
47
47
  type: :runtime
48
48
  prerelease: false
49
- version_requirements: *70277493717520
49
+ version_requirements: *70127299342960
50
50
  - !ruby/object:Gem::Dependency
51
51
  name: rake
52
- requirement: &70277493717040 !ruby/object:Gem::Requirement
52
+ requirement: &70127299357440 !ruby/object:Gem::Requirement
53
53
  none: false
54
54
  requirements:
55
55
  - - ! '>='
@@ -57,7 +57,7 @@ dependencies:
57
57
  version: '0'
58
58
  type: :development
59
59
  prerelease: false
60
- version_requirements: *70277493717040
60
+ version_requirements: *70127299357440
61
61
  description: Tools for displaying information from and reporting to Instrumental (instrumentalapp.com)
62
62
  email:
63
63
  - support@instrumentalapp.com