Created
November 13, 2013 05:07
-
-
Save mdeeks/7444030 to your computer and use it in GitHub Desktop.
DataDog agent JMX config to monitor all java garbage collector types. Bucketed as "major" and "minor" collections.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
init_config: | |
instances: | |
- host: localhost | |
port: 9999 | |
conf: | |
# Young Gen Collectors (Minor Collections) | |
- include: | |
domain: java.lang | |
type: GarbageCollector | |
name: Copy | |
attribute: | |
CollectionCount: | |
metric_type: gauge | |
alias: jmx.gc.minor_collection_count | |
CollectionTime: | |
metric_type: gauge | |
alias: jmx.gc.minor_collection_time | |
- include: | |
domain: java.lang | |
type: GarbageCollector | |
name: PS Scavenge | |
attribute: | |
CollectionCount: | |
metric_type: gauge | |
alias: jmx.gc.minor_collection_count | |
CollectionTime: | |
metric_type: gauge | |
alias: jmx.gc.minor_collection_time | |
- include: | |
domain: java.lang | |
type: GarbageCollector | |
name: ParNew | |
attribute: | |
CollectionCount: | |
metric_type: gauge | |
alias: jmx.gc.minor_collection_count | |
CollectionTime: | |
metric_type: gauge | |
alias: jmx.gc.minor_collection_time | |
- include: | |
domain: java.lang | |
type: GarbageCollector | |
name: G1 Young Generation | |
attribute: | |
CollectionCount: | |
metric_type: gauge | |
alias: jmx.gc.minor_collection_count | |
CollectionTime: | |
metric_type: gauge | |
alias: jmx.gc.minor_collection_time | |
# Old Gen Collectors (Major collections) | |
- include: | |
domain: java.lang | |
type: GarbageCollector | |
name: MarkSweepCompact | |
attribute: | |
CollectionCount: | |
metric_type: gauge | |
alias: jmx.gc.major_collection_count | |
CollectionTime: | |
metric_type: gauge | |
alias: jmx.gc.major_collection_time | |
- include: | |
domain: java.lang | |
type: GarbageCollector | |
name: PS MarkSweep | |
attribute: | |
CollectionCount: | |
metric_type: gauge | |
alias: jmx.gc.major_collection_count | |
CollectionTime: | |
metric_type: gauge | |
alias: jmx.gc.major_collection_time | |
- include: | |
domain: java.lang | |
type: GarbageCollector | |
name: ConcurrentMarkSweep | |
attribute: | |
CollectionCount: | |
metric_type: gauge | |
alias: jmx.gc.major_collection_count | |
CollectionTime: | |
metric_type: gauge | |
alias: jmx.gc.major_collection_time | |
- include: | |
domain: java.lang | |
type: GarbageCollector | |
name: G1 Mixed Generation | |
attribute: | |
CollectionCount: | |
metric_type: gauge | |
alias: jmx.gc.major_collection_count | |
CollectionTime: | |
metric_type: gauge | |
alias: jmx.gc.major_collection_time |
This is awesome, thanks!! I second that this would be nice to see in the JVM monitoring for datadog.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hey @remh Might be useful for to add this in as the default for JVM monitoring in datadog. It handles all combinations of garbage collectors (as of Java 7). Buckets them into minor (low pain) and major (very painful) collections.