Monitoring on-premises Ruby applications
You can configure the Ruby data collector to monitor the on-premises Ruby applications and then send monitoring data to the Unified Agent.
Before you begin
- Ensure that you install the Unified Agent plug-ins for LWDC and OpenTracing. For more information, see Installing and configuring Unified Agent plug-ins.
- Check whether you downloaded the Ruby data collector package. For more information, see Downloading the Ruby data collector.
Procedure
- Run gem install stacktracer-20.06.00.gem to install the Ruby data collector.
- Run echo "gem 'zipkin-tracer','>=0.32'" >> Gemfile gem.
- Run echo "gem 'stacktracer','=20.06.00'" >> Gemfile gem.
- Rerun the Ruby on Rails application by running rails s -p 3000 -b 0.0.0.0.
- Add the following environment variables:
WhereUA_LWDC_LISTENER_URL=http://<ip or host>:<port> UA_JAEGER_ENDPOINT_ZIPKIN_V2=http://<ip or host>:<port>/api/v2/spans
- <ip or host> is the ip or host address where you install Unified Agent in on-premises environment.
- <port> is the port that you configure in Installing and configuring Unified Agent plug-ins. By default, it is 8848 for
UA_LWDC_LISTENER_URL
, and 9411 forUA_JAEGER_ENDPOINT_ZIPKIN_V2
.