Skip to content

Latest commit

 

History

History
43 lines (24 loc) · 1.67 KB

README.md

File metadata and controls

43 lines (24 loc) · 1.67 KB

Tool to export jmx data into file,... JMX data can come from local JVM or a remote JVM

Usage

java -jar jmx-exporter xxx.properties ...

The application export data to stdout (System.out) and log into stderr (System.err), so common usage can be

java -jar jmx-exporter monitor0.properties 2> /tmp/jmx-monitor0.log 1> /tmp/jmx-monitor0.data

Some sample shell script are provide in the zip archive (jmx-exporter-X.Z-app.zip)

configuration

Configuration is read from property file (see sample.properties). If there are several configuration files, each configuration will run independently, so several application or several export can be run in a single run.

System properties can define and override any configuration define in property file, they can be used for shared configuration.

The minimal property to define is "jmx.metrics" that list info to retrieve.

with CloudWatch command line tool

Configure (in property file) the cloudwatch properties and set exporter exporter.class=io.dable.jmx.Exporter4CloudwatchCli

with CloudWatch java SDK

You need to provide jar from AWS SDK for java (1.2.0) into the classpath. Configure (in property file) the cloudwatch properties and set exporter exporter.class=io.dable.jmx.Exporter4CloudwatchAsyncClient.

Why

  • Want a bulk request (or at least several request per connection)

References