Giter VIP home page Giter VIP logo

dynatrace-appmon-tomcat-agent-ansible's Introduction

Dynatrace-Tomcat-Agent-Ansible

This Ansible role installs and configures the Dynatrace AppMon Agent of the Dynatrace AppMon solution for the Apache Tomcat application server.

Note: this role makes the Dynatrace AppMon Agent available to Apache Tomcat by injecting an appropriate -agentpath option into an environment variable, e.g. CATALINA_OPTS, inside a file (typically an executable script). It is assumed that this script either executes Apache Tomcat directly or is sourced by another script before Apache Tomcat gets executed. You will have to restart your application after placing the agent.

Download

The role is available via:

Dependencies

This roles depends on the following roles:

Role Variables

As defined in defaults/main.yml:

Name Default Description
dynatrace_tomcat_agent_env_var_name CATALINA_OPTS The name of the environment variable to be used for Agent injection.
dynatrace_tomcat_agent_env_var_file_name required The name of the file to be modified.
dynatrace_tomcat_agent_env_var_file_insert_after BOF A regex, BOF or EOF for begin-of-file and end-of-file, respectively. If a given regex is not matched, the -agentpath option will be appended to the file.
dynatrace_tomcat_agent_name apache-tomcat-agent The name of the Java Agent as it appears in Dynatrace AppMon.
dynatrace_tomcat_agent_collector_hostname localhost The location of the collector the Agent shall connect to.
dynatrace_tomcat_agent_collector_port 9998 The port on the collector the Agent shall connect to.
dynatrace_tomcat_agent_linux_agent_path /opt/dynatrace/agent/lib64/libdtagent.so The path to the Agent libary.
dynatrace_tomcat_agent_state present Whether the Agent shall be present or absent.

Example Playbook

- hosts: all
  roles:
    - role: Dynatrace.Dynatrace-Tomcat-Agent
      dynatrace_tomcat_agent_env_var_file_name: /opt/tomcat/bin/catalina.sh
      dynatrace_tomcat_agent_env_var_file_insert_after: '#!/bin/sh'

Testing

We use Test Kitchen to automatically test our automated deployments with Serverspec and RSpec:

  1. Install Test Kitchen and its dependencies from within the project's directory:
gem install bundler
bundle install
  1. Run all tests
kitchen test

By default, we run our tests inside Docker containers as this considerably speeds up testing time (see .kitchen.yml).

Additional Resources

Blogs

Presentations

Problems? Questions? Suggestions?

This offering is Dynatrace Community Supported. Feel free to share any problems, questions and suggestions with your peers on the Dynatrace Community's Application Monitoring & UEM Forum.

License

Licensed under the MIT License. See the LICENSE file for details. analytics

dynatrace-appmon-tomcat-agent-ansible's People

Contributors

marcinzejer avatar metmajer avatar piotrmejer avatar

Stargazers

 avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.