Skip to content

Examples

Eiichi Sato edited this page Jul 24, 2020 · 4 revisions

Default Configuration

Always start with this default configuration file, which should work for most applications.

https://github.com/eiiches/scriptable-jmx-exporter/blob/v0.0.7/src/main/resources/scriptable-jmx-exporter.yaml

Examples

Apache Flume

Let's look at MBeans registered by Apache Flume:

  • org.apache.flume.channel:type=<CHANNEL1_NAME>
  • org.apache.flume.channel:type=<CHANNEL2_NAME>
  • org.apache.flume.sink:type=<SINK1_NAME>
  • org.apache.flume.sink:type=<SINK2_NAME>
  • ...

It looks like the type key property should better go in to metric labels (unlike the type key property of java.lang or java.nio).

- pattern: 'org\\.apache\\.flume\\..*'
  transform: |
    !java
    V1.transform(in, out, V1.snakeCase());

Clone this wiki locally