netuitived 1.1.2 → 1.1.3

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.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
- SHA1:
3
- metadata.gz: 6ed1ef7009819a776ce7b04ba5cc94b39f6a46db
4
- data.tar.gz: 31fd4cac443825b749e25c2341c5cf5f55631759
2
+ SHA256:
3
+ metadata.gz: edeae2a1e3b4a7e865460d57003c274cfc57c60c621453682fc63e999007b0aa
4
+ data.tar.gz: cc1838c0a1e84cf836dfe16aeb0de23836f4266a08b453aa118d90458bf03f94
5
5
  SHA512:
6
- metadata.gz: 1a6617ba4a03677cba4c8500a6e58956f095646a017c383b589f6f1418578477fb2c023864d0be4c7dbaa4df7541bc93e2128258a6e09f78a834e18bbed909db
7
- data.tar.gz: 87e573a080768df75b733e1d74c389c038ee162c784b2bc628a7632b86b1bac4a5262020484b511b1a28b1a22b42751407dd157fbe6f53c91a008d50e2a36441
6
+ metadata.gz: 0b3b8facbdb65a6e09fb2e13cb59fcd2a34e3d1e43ad502d3301396d139bc24e8abad2300ad8aa6322bc475932ec0c7e63d7e399a7efb8bd82a78b19406802a1
7
+ data.tar.gz: 29bde04e16577b0179870c580b430204c83c9c1f415d734e509a114b7d0751f7b7bbc283200d698b311de14bb8340cfd2ff609ad05516abaa2b275e4f55eafbd
@@ -6,6 +6,7 @@ apiId: apiId #apiId for the datasources. found in the datasources section in the
6
6
  baseAddr: "api.app.netuitive.com" #where to send the data. in most cases use the default. environment variable: NETUITIVED_BASE_ADDR
7
7
  port: nil #in most cases this will be nil. environment variable: NETUITIVED_PORT
8
8
  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
9
+ #elementTags: name1:value1,name2:value2 #tags applied to element. environment variable: NETUITIVED_ELEMENT_TAGS
9
10
  debugLevel: error #options (in ascending order of debugness) are: error, info, debug. environment variable: NETUITIVED_DEBUG_LEVEL
10
11
  netuitivedAddr: "localhost" #environment variable: NETUITIVED_NETUITIVED_ADDR
11
12
  netuitivedPort: 8875 #environment variable: NETUITIVED_NETUITIVED_PORT
@@ -9,6 +9,8 @@ module NetuitiveD
9
9
 
10
10
  attr_reader :elementName
11
11
 
12
+ attr_reader :elementTags
13
+
12
14
  attr_reader :netuitivedAddr
13
15
 
14
16
  attr_reader :netuitivedPort
@@ -66,6 +68,7 @@ module NetuitiveD
66
68
  @baseAddr = property('baseAddr', 'NETUITIVED_BASE_ADDR')
67
69
  @port = property('port', 'NETUITIVED_PORT')
68
70
  @elementName = property('elementName', 'NETUITIVED_ELEMENT_NAME')
71
+ @elementTags = property('elementTags', 'NETUITIVED_ELEMENT_TAGS')
69
72
  @netuitivedAddr = property('netuitivedAddr', 'NETUITIVED_NETUITIVED_ADDR')
70
73
  @netuitivedPort = property('netuitivedPort', 'NETUITIVED_NETUITIVED_PORT')
71
74
  @interval = property('interval', 'NETUITIVED_INTERVAL')
@@ -84,6 +87,7 @@ module NetuitiveD
84
87
  baseAddr: #{baseAddr}
85
88
  port: #{port}
86
89
  elementName: #{elementName}
90
+ elementTags: #{elementTags}
87
91
  debugLevel: #{debugLevelString}"
88
92
  end
89
93
  end
@@ -53,7 +53,13 @@ module NetuitiveD
53
53
  aggregatedSamplesArray.each do |sample|
54
54
  sample.timestamp = Time.new
55
55
  end
56
- element = NetuitiveD::IngestElement.new(NetuitiveD::ConfigManager.elementName, NetuitiveD::ConfigManager.elementName, 'Ruby', nil, @metrics, @samples + aggregatedSamplesArray, nil, nil)
56
+ unless NetuitiveD::ConfigManager.elementTags.nil?
57
+ @tags = []
58
+ NetuitiveD::ConfigManager.elementTags.split(',').map(&:strip).each do |tag|
59
+ @tags.push(NetuitiveD::IngestTag.new(tag.split(':')[0], tag.split(':')[1]))
60
+ end
61
+ end
62
+ element = NetuitiveD::IngestElement.new(NetuitiveD::ConfigManager.elementName, NetuitiveD::ConfigManager.elementName, 'Ruby', nil, @metrics, @samples + aggregatedSamplesArray, @tags, nil)
57
63
  elements = [element]
58
64
  elementString = elements.to_json
59
65
  clearMetrics
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: 1.1.2
4
+ version: 1.1.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - John King
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2017-06-23 00:00:00.000000000 Z
11
+ date: 2018-10-17 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
@@ -57,7 +57,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
57
57
  version: '0'
58
58
  requirements: []
59
59
  rubyforge_project:
60
- rubygems_version: 2.4.5
60
+ rubygems_version: 2.7.7
61
61
  signing_key:
62
62
  specification_version: 4
63
63
  summary: Metric collection druby server