io.fabric8:agent-bond-jmx_exporter

A super agent

License

License

GroupId

GroupId

io.fabric8
ArtifactId

ArtifactId

agent-bond-jmx_exporter
Last Version

Last Version

1.2.0
Release Date

Release Date

Type

Type

jar
Description

Description

A super agent

Download agent-bond-jmx_exporter

How to add to project

<!-- https://jarcasting.com/artifacts/io.fabric8/agent-bond-jmx_exporter/ -->
<dependency>
    <groupId>io.fabric8</groupId>
    <artifactId>agent-bond-jmx_exporter</artifactId>
    <version>1.2.0</version>
</dependency>
// https://jarcasting.com/artifacts/io.fabric8/agent-bond-jmx_exporter/
implementation 'io.fabric8:agent-bond-jmx_exporter:1.2.0'
// https://jarcasting.com/artifacts/io.fabric8/agent-bond-jmx_exporter/
implementation ("io.fabric8:agent-bond-jmx_exporter:1.2.0")
'io.fabric8:agent-bond-jmx_exporter:jar:1.2.0'
<dependency org="io.fabric8" name="agent-bond-jmx_exporter" rev="1.2.0">
  <artifact name="agent-bond-jmx_exporter" type="jar" />
</dependency>
@Grapes(
@Grab(group='io.fabric8', module='agent-bond-jmx_exporter', version='1.2.0')
)
libraryDependencies += "io.fabric8" % "agent-bond-jmx_exporter" % "1.2.0"
[io.fabric8/agent-bond-jmx_exporter "1.2.0"]

Dependencies

compile (1)

Group / Artifact Type Version
io.fabric8 : agent-bond-core jar 1.2.0

test (1)

Group / Artifact Type Version
junit : junit jar 4.11

Project Modules

There are no modules declared in this project.

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.

io.fabric8

fabric8

open source development platform for kubernetes

Versions

Version
1.2.0
1.1.3
1.1.2
1.1.1
1.0.2
1.0.1
1.0.0
0.1.5
0.1.4
0.1.3
0.1.2
0.1.1
0.1.0