Skip to content

Instantly share code, notes, and snippets.

@flah00
Last active January 4, 2016 01:19
Show Gist options
  • Save flah00/8547688 to your computer and use it in GitHub Desktop.
Save flah00/8547688 to your computer and use it in GitHub Desktop.
jmx.yaml
instances:
- host: localhost
port: 54321
name: aname
user: u
password: p
conf:
- include:
domain: java.lang
bean: java.lang:type=Runtime
attribute:
Uptime:
metric_type: gauge
alias: jmx.uptime
- include:
domain: java.lang
bean: java.lang:type=Threading
attribute:
ThreadCount:
metric_type: gauge
alias: jmx.thread_count
- include:
domain: java.lang
bean: java.lang:type=OperatingSystem
attribute:
OpenFileDescriptorCount:
metric_type: gauge
alias: jmx.open_file_descriptor_count
MaxFileDescriptorCount:
metric_type: gauge
alias: jmx.max_file_descriptor_count
instances:
- host: localhost
port: 54321
name: aname
user: u
password: p
conf:
- include:
domain: java.lang
bean: java.lang:type=Runtime
- include:
domain: java.lang
bean: java.lang:type=Threading
- include:
domain: java.lang
bean: java.lang:type=OperatingSystem
init_config:
# Nothing to configure here
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment