Uninstalling the Ruby data collector
To uninstall the Ruby data collector, roll back the changes that you have made to your application and then update the application deployment.
Procedure
-
To uninstall
stacktracer-20.06.00.gem
from Ruby application in Kubernetes environment, do the following steps:-
Remove the following lines in Docker file:
RUN cp <app_folder>/RubyDC/stacktracer-20.06.00.gem <app_folder>/vendor/cache/ RUN echo "gem 'stacktracer','=20.06.00'" >> Gemfile
-
Remove
stacktracer-20.06.00.gem
from the Ruby application folder, for example,rm -f <app_folder>/RubyDC/stacktracer-20.06.00.gem
. -
Rebuild the application docker image.
docker build --network=host -t <image-name>:<version>
-
Repush it to a docker repository.
docker tag <image-name>:<version> <docker-repository>/<namespace>/<image-name>:<version> docker push <docker-repository>/<namespace>//<image-name>:<version>
-
Redeploy the application deployment in Kubernetes environment, or relaunch the docker image into container.
-
- To uninstall the Ruby data collector in on-premises environment, do the following steps:
- Run gem uninstall stacktracer.
- Remove
gem 'stacktracer','=20.06.00'
from theGemfile
. - Rerun the Ruby On Rails application by rails s -p 3000 -b 0.0.0.0.