netuitived 0.9.6 → 0.9.7

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: 049ec8bd6001fe95326aefcf2329f21db7baaba7
4
- data.tar.gz: 894c51673194dfc1952d7e28667295976a2fe6a3
3
+ metadata.gz: d8c39ccf5ec85ca2a5bb02445557d291ebadde19
4
+ data.tar.gz: f5c06d99a53a3008821bb9bac565d0ff26dcf474
5
5
  SHA512:
6
- metadata.gz: d48978c1a4dae34e429e77a343a9445f42b9a30f7ee020a815f0956edb136f189b68b9da7e1fb2d95e4d23436f82ee3465ca3d670173f217a56e4467ea6ae35c
7
- data.tar.gz: 219e0db6a53a2429606dfbe2cfdf31d55bb05fdcb47ee4f605286d99d2adb91675bb39a4d6becf6158ec14461db32c14eb40509b461a741856b21fa49181b20b
6
+ metadata.gz: ee34ef1298cb8c0c9dce94bf9dd57beb51928e85c1fd84181d27529dcd186c994d72c2d5cc2b92c9cfbaf8edaa6442fa3ea65d826a10dccd6bc1072ec29ed70f
7
+ data.tar.gz: 5653eef8bcde355b5a736b899a52d36b382a1bd50fa162fe988d4d202cd38615ef04df30d9ee59d46d6ebd2fa186e0231aeea7b9fb173a6d12b92a02044e4afe
data/README.md ADDED
@@ -0,0 +1,20 @@
1
+ # netuitived
2
+ a druby application that allows for the submission and aggregation of metrics through the use of DRbObjects
3
+
4
+ How to install using gem:
5
+
6
+ run the command:
7
+
8
+ gem install netuitived
9
+
10
+ How to run:
11
+
12
+ Once the gem has been installed run the start script (make sure the user it's being run as has access rights to the gem's install directory):
13
+
14
+ netuitived start
15
+
16
+ The start script will prompt you for the API key (which is found from generating a datasource in the Netuitive ui) and the element name (if unsure what to put, just put the name of your ruby application)
17
+
18
+ That's it, you're up and running. The extra config information is found in config/agent.yml. Each field in the config file can also be set using environment variables.
19
+
20
+ This daemon is meant to be used in conjunction with the netuitive_ruby_api (https://rubygems.org/gems/netuitive_ruby_api) and netuitive_rails_agent (https://rubygems.org/gems/netuitive_rails_agent) gems.
data/config/agent.yml CHANGED
@@ -1,9 +1,9 @@
1
1
  #all are configurable using environment variables
2
- apiId: apiId #apiId for the datasources. found in the datasources section in the netuitive ui. environment variable: NETUITIVED_API_ID
3
- baseAddr: "api.app.netuitive.com" #where to send the data. in most cases use the default. environment variable: NETUITIVED_BASE_ADDR
2
+ apiId: 85709129bed97750d13f56118ac22b97 #apiId for the datasources. found in the datasources section in the netuitive ui. environment variable: NETUITIVED_API_ID
3
+ baseAddr: "uat.netuitive.com" #where to send the data. in most cases use the default. environment variable: NETUITIVED_BASE_ADDR
4
4
  port: nil #in most cases this will be nil. environment variable: NETUITIVED_PORT
5
- elementName: elementName #name of the element to assign metrics to in netuitive. if unsure, just use the name of your app. environment variable: NETUITIVED_ELEMENT_NAME
6
- debugLevel: error #options (in ascending order of debugness) are: error, info, debug. environment variable: NETUITIVED_DEBUG_LEVEL
5
+ elementName: testApp #name of the element to assign metrics to in netuitive. if unsure, just use the name of your app. environment variable: NETUITIVED_ELEMENT_NAME
6
+ debugLevel: debug #options (in ascending order of debugness) are: error, info, debug. environment variable: NETUITIVED_DEBUG_LEVEL
7
7
  netuitivedAddr: "localhost" #environment variable: NETUITIVED_NETUITIVED_ADDR
8
8
  netuitivedPort: 8875 #environment variable: NETUITIVED_NETUITIVED_PORT
9
9
  interval: 60 #environment variable: NETUITIVED_INTERVAL
@@ -5,7 +5,7 @@ require 'netuitive/netuitived_logger'
5
5
  class APIEmissary
6
6
  def sendElements(elementString)
7
7
  NetuitiveLogger.log.debug elementString
8
- req = Net::HTTP::Post.new("/ingest/#{ConfigManager.apiId}", initheader = {'Content-Type' =>'application/json'})
8
+ req = Net::HTTP::Post.new("/ingest/ruby/#{ConfigManager.apiId}", initheader = {'Content-Type' =>'application/json'})
9
9
  req.body = elementString
10
10
  NetuitiveLogger.log.debug "starting post"
11
11
  if ConfigManager.port =~ /(.*)nil(.*)/
@@ -30,6 +30,9 @@ class MetricAggregator
30
30
  NetuitiveLogger.log.info "no netuitive metrics to report"
31
31
  return
32
32
  end
33
+ }
34
+ addSample("netuitive.collection_interval", ConfigManager.interval)
35
+ @metricMutex.synchronize{
33
36
  aggregatedSamplesArray = @aggregatedSamples.values
34
37
  aggregatedSamplesArray.each do |sample|
35
38
  sample.timestamp=Time.new
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: netuitived
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.9.6
4
+ version: 0.9.7
5
5
  platform: ruby
6
6
  authors:
7
7
  - John King
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-11-23 00:00:00.000000000 Z
11
+ date: 2015-12-07 00:00:00.000000000 Z
12
12
  dependencies: []
13
13
  description: Collects metrics over a certain interval and then sends them to Netuitive
14
14
  email: jking@netuitive.com
@@ -32,6 +32,7 @@ files:
32
32
  - config/agent.yml
33
33
  - "./LICENSE"
34
34
  - log/netuitive.log
35
+ - "./README.md"
35
36
  - bin/netuitived
36
37
  homepage: http://rubygems.org/gems/netuitived
37
38
  licenses: