newrelic_plugins_hive 0.0.4 → 0.0.5
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +90 -1
- data/bin/hive_daemon_wrapper +1 -2
- data/lib/newrelic_plugins_hive/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: f713204fa0d65bfdd45124412214e76addff851c
|
4
|
+
data.tar.gz: 4a7e0d8fe83fa0d4e8b93ecb2180a689a9abf078
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: fc40238f67b09e77d5a93eb47f5d7062a6f46f60a1086092677b08bae30eabc44188f1e3aa10d77342ef43f43c5521e5860de485cc5627a50f44029ecf66f636
|
7
|
+
data.tar.gz: e61a046241fae01c2398b1a61ac67e47663df68313f718c519bd57de8a2420ab3ccc60061721ce5bde71fe597547f59f559692177a04a9a9149603b94ffbb53b
|
data/README.md
CHANGED
@@ -1 +1,90 @@
|
|
1
|
-
|
1
|
+
# NewRelic Plugins Hive
|
2
|
+
|
3
|
+
Without this gem, if you're using more then one plugin for NewRelic you need to download each plugin, configure it in different files and repositories, deploy it separately and run different process for each plugin (including monitor those processes etc...)
|
4
|
+
NewRelic Plugins Hive allow you to easily download, configure and deploy multiple NewRelic plugins and run them all in one process!
|
5
|
+
|
6
|
+
## Installation
|
7
|
+
|
8
|
+
Install the gem:
|
9
|
+
|
10
|
+
$ gem install newrelic_plugins_hive
|
11
|
+
|
12
|
+
Create a new hive application (this will create a new folder with the name you specified and the default folder structure and files):
|
13
|
+
|
14
|
+
$ hive new <APP_NAME>
|
15
|
+
|
16
|
+
## Configure the hive
|
17
|
+
|
18
|
+
First, you need to configure which New Relic plugins you want to use in the hive.
|
19
|
+
To do that open the file `config/newrelic_hive.yml` and add for each plugin its github repository and a path to the agent file in the repository.
|
20
|
+
|
21
|
+
Example structure of the file:
|
22
|
+
|
23
|
+
plugins:
|
24
|
+
sidekiq:
|
25
|
+
github: https://github.com/eksoverzero/newrelic_sidekiq_agent
|
26
|
+
agent_path: newrelic_sidekiq_agent
|
27
|
+
rabbitmq:
|
28
|
+
github: https://github.com/gopivotal/newrelic_pivotal_agent
|
29
|
+
agent_path: plugins/pivotal_rabbitmq_plugin/pivotal_rabbitmq_plugin.rb
|
30
|
+
redis:
|
31
|
+
github: https://github.com/gopivotal/newrelic_pivotal_agent
|
32
|
+
agent_path: plugins/pivotal_redis_plugin/pivotal_redis_plugin.rb
|
33
|
+
|
34
|
+
It is enough that `agent_path` attribute will specify a unique filname in the repository. So in the example above you can just use this `agent_path` for redis:
|
35
|
+
|
36
|
+
agent_path: pivotal_redis_plugin.rb
|
37
|
+
|
38
|
+
#### Install the plugins in the hive
|
39
|
+
|
40
|
+
This will download and extract the plugin agents that specified in `config/newrelic_hive.yml`:
|
41
|
+
|
42
|
+
$ hive install
|
43
|
+
|
44
|
+
## Configure each plugin
|
45
|
+
|
46
|
+
Configuring the plugins in the hive requires 3 simple steps:
|
47
|
+
|
48
|
+
1. Add your New Relic license key to `config/newrelic_plugin.yml`
|
49
|
+
2. For each plugin, add the plugin specific configuration to `config/newrelic_plugin.yml` under the section `agents`
|
50
|
+
3. Add additional gems to your Gemfile, if the plugins in the hive require it.
|
51
|
+
|
52
|
+
__Example:__ The RabbitMQ plugin has a configuration to specify the rabbitmq url, as well as the Sidekiq plugins that requires the Redis uri, so example `config/newrelic_plugin.yml` will look like:
|
53
|
+
|
54
|
+
newrelic:
|
55
|
+
license_key: 'YOUR_LICENSE_KEY_HERE'
|
56
|
+
|
57
|
+
# Set to '1' for verbose output, remove for normal output.
|
58
|
+
verbose: 1
|
59
|
+
|
60
|
+
agents:
|
61
|
+
rabbitmq:
|
62
|
+
management_api_url: http://user:password@hostname:55672
|
63
|
+
|
64
|
+
sidekiq_status_agent:
|
65
|
+
-
|
66
|
+
instance_name: "Name"
|
67
|
+
uri: "redis://localhost:6379"
|
68
|
+
namespace: "namespace"
|
69
|
+
|
70
|
+
This example combine in the same `config/newrelic_plugin.yml` configurations from two different plugins (rabbitMQ and Sidekiq).
|
71
|
+
You must look at your plugin documentation and follow the instructions how to configure it.
|
72
|
+
|
73
|
+
## Usage
|
74
|
+
|
75
|
+
Run the agent:
|
76
|
+
|
77
|
+
$ hive run
|
78
|
+
|
79
|
+
Or, as a maemon:
|
80
|
+
|
81
|
+
$ hive run -d start # Start the daemon
|
82
|
+
$ hive run -d stop # Stop the daemon
|
83
|
+
|
84
|
+
## Contributing
|
85
|
+
|
86
|
+
1. Fork it
|
87
|
+
2. Create your feature branch (`git checkout -b my-new-feature`)
|
88
|
+
3. Commit your changes (`git commit -am 'Added some feature'`)
|
89
|
+
4. Push to the branch (`git push origin my-new-feature`)
|
90
|
+
5. Create new Pull Request
|
data/bin/hive_daemon_wrapper
CHANGED