Skip to content

Instantly share code, notes, and snippets.

@michaelajr
Last active October 17, 2017 13:51
Show Gist options
  • Save michaelajr/f1167ded8e2d5baa5cc13c92f044b6b2 to your computer and use it in GitHub Desktop.
Save michaelajr/f1167ded8e2d5baa5cc13c92f044b6b2 to your computer and use it in GitHub Desktop.
Datadog JVM Memory Metrics.
init_config:
instances:
- host: localhost
port: JMX_PORT
user: JMX_USER
password: JMX_PASSWORD
conf:
- include:
domain: java.lang
type: MemoryPool
attribute:
Usage.used:
alias: jvm.memory_pool.used
metric_type: gauge
Usage.max:
alias: jvm.memory_pool.max
metric_type: gauge
Usage.init:
alias: jvm.memory_pool.init
metric_type: gauge
Usage.committed:
alias: jvm.memory_pool.committed
metric_type: gauge
- include:
domain: java.lang
type: GarbageCollector
attribute:
CollectionCount:
alias: jvm.gc.count
metric_type: gauge
CollectionTime:
alias: jvm.gc.time
metric_type: gauge
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment