site24x7_apminsight 1.1 → 1.1.1

Sign up to get free protection for your applications and to get access to all the features.
data/README.rdoc CHANGED
@@ -42,7 +42,7 @@ The following configuration options are mandatory and should be provided for the
42
42
 
43
43
  agent.server.port - The HTTP listening port of the Application Server.
44
44
 
45
- More configuration options of APM Insight Ruby Agent can be found here. https://help.site24x7.com/APM-Insight-Agent-Configuration.html
45
+ More configuration options of APM Insight Ruby Agent can be found here. https://www.site24x7.com/help/apm/apm-insight-configuration.html
46
46
 
47
47
  Supported Environments :
48
48
 
@@ -62,6 +62,6 @@ References
62
62
 
63
63
  * Help Documentation for apminsight
64
64
 
65
- https://help.site24x7.com/Installing-Ruby-Agent.html
66
- https://help.site24x7.com/Troubleshooting-Tips-Ruby-Agent.html
65
+ https://www.site24x7.com/help/apm/ruby-agent.html
66
+ https://support.site24x7.com/portal/helpcenter/site24x7/apm-insight/ruby-monitoring
67
67
 
data/Rakefile CHANGED
@@ -15,7 +15,7 @@ require 'jeweler'
15
15
  Jeweler::Tasks.new do |gem|
16
16
  # gem is a Gem::Specification... see http://docs.rubygems.org/read/chapter/20 for more options
17
17
  gem.name = "site24x7_apminsight"
18
- gem.homepage = "https://help.site24x7.com/Installing-Ruby-Agent.html" #to be changed after the web page is ready
18
+ gem.homepage = "https://www.site24x7.com/help/apm/ruby-agent.html"
19
19
  gem.license = "MIT"
20
20
  gem.summary = %Q{Application Performace Monitor}
21
21
  gem.description = %Q{Application Performace Monitor : Monitor the web tranasactions}
data/VERSION CHANGED
@@ -1 +1 @@
1
- 1.1
1
+ 1.1.1
data/conf/apminsight.conf CHANGED
@@ -9,7 +9,7 @@
9
9
  #
10
10
  #All the configuration options defaults to factory configuration if commented or not supported values
11
11
 
12
- #License key of your account.
12
+ #License key of your Site24x7 APM Insight account.
13
13
  license.key=
14
14
 
15
15
  #Logical name of your application. Say for example you have "Order Processing" applications running in
@@ -71,7 +71,8 @@ transaction.trace.sql.parametrize=true
71
71
  #default value: 3 (second)
72
72
  transaction.trace.sql.stacktrace.threshold=3
73
73
 
74
- #Capture HTTP web request parameters, if enabled. To skip recording specific request parameters use webtrasnaction.trace.input.params.ignore key.
74
+ #Capture HTTP request input parameters, if enabled.
75
+ #To skip recording specific request parameters use webtrasnaction.trace.input.params.ignore key.
75
76
  #default value: false
76
77
  webtransaction.trace.input.params.record=false
77
78
 
@@ -82,28 +83,12 @@ webtransaction.trace.input.params.record=false
82
83
  webtransaction.trace.input.params.ignore=password, pswd, pass, authKey, parentId, parentID, resourceId, resourceID, id, ID
83
84
 
84
85
  #Stop listening transactions with specified URL pattern.
85
- transaction.skip.listening=*.css, *.js, *.gif, *.jpg, *.jpeg, *.bmp, *.png
86
+ transaction.skip.listening=*.css, *.js, *.gif, *.jpg, *.jpeg, *.bmp, *.png, *.ico
86
87
 
87
- #Sampling counter.Say for example when you specify the value as 20, agent will track one in 20 transactions.
88
+ #Sampling counter. Say for example when you specify the value as 20, agent will track one in 20 transactions.
88
89
  #default value: 1 (transaction)
89
90
  transaction.tracking.request.interval=1
90
91
 
91
- #Time interval for the agent to collect the JVM related data like Memory Usage, Cpu Usage, etc.
92
- #For example, if value is set to 3, agent will collect data for every 3 minutes.
93
- #default value: 5 (minutes)
94
- #jvm.polling.interval=
95
-
96
- #The grouping (componentization) of includes packages.
97
- #By Default, APM Insight groups transactions into
98
- #STRUTS, FILTER, JSP, SERVLET, EJB, IBATIS, HIBERNATE,
99
- #MYSQL, MSSQL, PGSQL, ORACLE, IBMDB2, SYBASE, JDBC (for other database types) and POJO (Plain Java Object) components.
100
- #For additional components of your custom includes packages, use include.components
101
- #eg: configuring com/test/memcache/.*:memcache will group all the packages & classes that
102
- #starts with com.test.memcache into MEMCACHE component.
103
- #Note : The package name will default be included for instrumentation and you need NOT give this in include.package separately.
104
- #Use comma(,) to separate multiple entries.
105
- #include.components=
106
-
107
92
  #Directory where agent logs information separately.
108
93
  #Defaults to the directory where apminsight-javaagent.jar is installed.
109
94
  #Use forward slash(/) as path separator.
@@ -113,4 +98,4 @@ transaction.tracking.request.interval=1
113
98
  #information. The levels are SEVERE, WARNING, INFO, FINE in the order
114
99
  #respectively. Defaults to the level INFO if commented or mentioned
115
100
  #incorrectly.
116
- apminsight.log.level=INFO
101
+ apminsight.log.level=INFO
@@ -142,6 +142,7 @@ module ManageEngine
142
142
  def assignConfig
143
143
  initValues
144
144
  @config.each do |key,value|
145
+ value = checkAndGetEnvValue(value)
145
146
  case key
146
147
  when "application.name" then @appname=value
147
148
  when "apm.host" then @apmhost=value
@@ -156,7 +157,7 @@ module ManageEngine
156
157
  when "transaction.trace.sql.parametrize" then @sql_capture_params=@obj.util.getBooleanValue value
157
158
  when "transaction.trace.sql.stacktrace.threshold" then @sql_trace_t=isFloat(@sql_trace_t,value)
158
159
  when "proxy.server.host" then @proxy_host=value
159
- when "proxy.server.port" then @proxy_port=value
160
+ when "proxy.server.port" then @proxy_port=isInteger(@proxy_port,value)
160
161
  when "proxy.auth.username" then @proxy_user=value
161
162
  when "proxy.auth.password" then @proxy_pass=value
162
163
  when "apm.protocol.https" then @is_secured=@obj.util.getBooleanValue value
@@ -167,11 +168,21 @@ module ManageEngine
167
168
  end
168
169
  end
169
170
  end
171
+
172
+ #Checks whether the given value is Environment Variable
173
+ def checkAndGetEnvValue(data)
174
+ value = "#{data}"[/{(.*)}/,1]
175
+ if (value != nil && ENV.has_key?(value))
176
+ return data.gsub(/{.*}/, ENV[value])
177
+ else
178
+ return data
179
+ end
180
+ end
170
181
 
171
182
  def getAgentInfo
172
183
  data = Hash.new
173
184
  agentdata = Hash.new
174
- agentdata = {"application.type"=>"RUBY","application.name"=>@appname,"hostname"=>@agenthost,"port"=>@agentport,"agent.version"=>"1.0"}
185
+ agentdata = {"application.type"=>"RUBY","application.name"=>@appname,"hostname"=>@agenthost,"port"=>@agentport,"agent.version"=>"1.1"}
175
186
  data["agent_info"]=agentdata
176
187
  data["environment"]=getEnvData
177
188
  data["custom_config_info"]=getAgentConfigData
@@ -18,7 +18,9 @@ module ManageEngine
18
18
  puts "APM Insight Ruby Agent Started"
19
19
  else
20
20
  @obj.log.info "Agent Initialization Failed - Going to shutdown"
21
- @obj.instrumenter.doSubscribe
21
+ #While parsing the response from /arh/connect we set instrumenter to nil on delete request
22
+ #Server startup fails when the below instruction is executed
23
+ #@obj.instrumenter.doUnSubscribe
22
24
  @obj.shutdownagent
23
25
  end
24
26
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: site24x7_apminsight
3
3
  version: !ruby/object:Gem::Version
4
- version: '1.1'
4
+ version: 1.1.1
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,11 +9,11 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2014-10-08 00:00:00.000000000Z
12
+ date: 2016-05-30 00:00:00.000000000Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: shoulda
16
- requirement: &23260260 !ruby/object:Gem::Requirement
16
+ requirement: &24015144 !ruby/object:Gem::Requirement
17
17
  none: false
18
18
  requirements:
19
19
  - - ! '>='
@@ -21,10 +21,10 @@ dependencies:
21
21
  version: '0'
22
22
  type: :development
23
23
  prerelease: false
24
- version_requirements: *23260260
24
+ version_requirements: *24015144
25
25
  - !ruby/object:Gem::Dependency
26
26
  name: bundler
27
- requirement: &23259972 !ruby/object:Gem::Requirement
27
+ requirement: &24014856 !ruby/object:Gem::Requirement
28
28
  none: false
29
29
  requirements:
30
30
  - - ~>
@@ -32,10 +32,10 @@ dependencies:
32
32
  version: 1.0.0
33
33
  type: :development
34
34
  prerelease: false
35
- version_requirements: *23259972
35
+ version_requirements: *24014856
36
36
  - !ruby/object:Gem::Dependency
37
37
  name: jeweler
38
- requirement: &23259684 !ruby/object:Gem::Requirement
38
+ requirement: &24014568 !ruby/object:Gem::Requirement
39
39
  none: false
40
40
  requirements:
41
41
  - - ~>
@@ -43,10 +43,10 @@ dependencies:
43
43
  version: 1.6.4
44
44
  type: :development
45
45
  prerelease: false
46
- version_requirements: *23259684
46
+ version_requirements: *24014568
47
47
  - !ruby/object:Gem::Dependency
48
48
  name: rcov
49
- requirement: &23259396 !ruby/object:Gem::Requirement
49
+ requirement: &24014280 !ruby/object:Gem::Requirement
50
50
  none: false
51
51
  requirements:
52
52
  - - ! '>='
@@ -54,10 +54,10 @@ dependencies:
54
54
  version: '0'
55
55
  type: :development
56
56
  prerelease: false
57
- version_requirements: *23259396
57
+ version_requirements: *24014280
58
58
  - !ruby/object:Gem::Dependency
59
59
  name: rails
60
- requirement: &23259108 !ruby/object:Gem::Requirement
60
+ requirement: &24013992 !ruby/object:Gem::Requirement
61
61
  none: false
62
62
  requirements:
63
63
  - - ! '>='
@@ -65,7 +65,7 @@ dependencies:
65
65
  version: 3.0.0
66
66
  type: :development
67
67
  prerelease: false
68
- version_requirements: *23259108
68
+ version_requirements: *24013992
69
69
  description: Site24x7 APMInsight gives you end-to-end web-transaction awareness of
70
70
  Rails applications enabling you to isolate performance issues and resolve them quickly.
71
71
  To monitor Rails application performance, download and deploy Ruby agent(site24x7_apminsight)
@@ -99,7 +99,7 @@ files:
99
99
  - lib/agent/server/worker/am_worker.rb
100
100
  - lib/agent/server/instrument/am_apm.rb
101
101
  - lib/agent/server/instrument/am_instrumenter.rb
102
- homepage: https://help.site24x7.com/Installing-Ruby-Agent.html
102
+ homepage: https://www.site24x7.com/help/apm/ruby-agent.html
103
103
  licenses: []
104
104
  post_install_message:
105
105
  rdoc_options: []