Giter VIP home page Giter VIP logo

agent-bond's Introduction

Agent Bond

The name's Bond, Agent Bond ...

Agent Bond is a super agent, which wraps and dispatches on several other agents. That way, you only have to install a single agent within your JVM with a single set of configuration data (which contains multiple separate parts).

The following agents are currently supported:

Usage

java -javaagent:agent-bond.jar=jolokia{{port=8778}},jmx_exporter{{9779:config.yml}}

The argument passed to the agent has the general format:

agent1_type{{ options }}, agent2_type{{ options }}, ... 

Only agents referenced are enabled. The possible agent types are:

  • jolokia : Options for the Jolokia JVM agents as they are specified in the reference manual. The configuration for Jolokia can be omitted, it will take then the default values
  • jmx_exporter : Options for jmx_exporter which are mandatory. You need the port and the path to the configuration file like in jmx_exporter{{9779:config.yml}}

Alternatively instead of providing the configuration on the command line you can also specify the path to a property file like in -javaagent:agent-bond.jar=agent.properties where the properties hold the configuration line by line:

jolokia=port=8778,host=0.0.0.0
jmx_exporter=9779:config.yml

If both, a property file and specific agent configuration is provided on the command line, then the configuration on the command line overwrites the one in the configuration.

An agent is only enabled when it is mentioned in the configuration, even with an empty agent configuration (like jolokia{{}})

Docker Base Image

There is also a Docker base image available: fabric8/java-alpine-openjdk8-jre

You can use this to easily enable Jolokia and/or jmx_exporter for your Java applications. Some sample usage for Tomcat and Wildfly are included.

agent-bond's People

Contributors

astefanutti avatar chirino avatar davsclaus avatar fusesource-ci avatar jheusser avatar jimmidyson avatar rhuss avatar

Watchers

 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.