Skip to content

Commit

Permalink
document test mode
Browse files Browse the repository at this point in the history
  • Loading branch information
SylvainJuge committed Feb 7, 2025
1 parent 4ba98a4 commit adfcd48
Showing 1 changed file with 12 additions and 1 deletion.
13 changes: 12 additions & 1 deletion jmx-scraper/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -81,8 +81,19 @@ be set through the standard `JAVA_TOOL_OPTIONS` environment variable using the `

## Troubleshooting

### Exported metrics

In order to investigate when and what metrics are being captured and sent, setting the `otel.metrics.exporter`
configuration option to include `logging` exporter provides log messages when metrics are being exported.
configuration option to include `logging` exporter provides log messages when metrics are being exported

### JMX connection test

Connection to the remote JVM through the JMX can be tested by adding the `-test` argument.
When doing so, the JMX Scraper will only test the connection to the remote JVM with provided configuration
and exit.

- Connection OK: `JMX connection test OK` message is written to standard output and exit status = `0`
- Connection ERROR: `JMX connection test ERROR` message is written to standard output and exit status = `1`

## Extra libraries in classpath

Expand Down

0 comments on commit adfcd48

Please sign in to comment.