From d973f6dd876dfb9ec7dd0df53dfd3530de138059 Mon Sep 17 00:00:00 2001 From: David Pratt Date: Mon, 3 Jun 2019 10:13:55 -0500 Subject: [PATCH 1/2] Fix JMX metric name for G1GC old generation statistics. --- .../org/datadog/jmxfetch/new-gc-default-jmx-metrics.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/resources/org/datadog/jmxfetch/new-gc-default-jmx-metrics.yaml b/src/main/resources/org/datadog/jmxfetch/new-gc-default-jmx-metrics.yaml index a59ed2987..d28454ff3 100644 --- a/src/main/resources/org/datadog/jmxfetch/new-gc-default-jmx-metrics.yaml +++ b/src/main/resources/org/datadog/jmxfetch/new-gc-default-jmx-metrics.yaml @@ -82,7 +82,7 @@ - include: domain: java.lang type: GarbageCollector - name: G1 Mixed Generation + name: G1 Old Generation attribute: CollectionCount: alias: jvm.gc.major_collection_count From dade8a05cd9d75faae0cb62d5730bf0459d5b8ef Mon Sep 17 00:00:00 2001 From: David Pratt Date: Wed, 26 Jun 2019 11:12:04 -0500 Subject: [PATCH 2/2] Support for both G1 old generation JMX metric names. --- .../jmxfetch/new-gc-default-jmx-metrics.yaml | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/src/main/resources/org/datadog/jmxfetch/new-gc-default-jmx-metrics.yaml b/src/main/resources/org/datadog/jmxfetch/new-gc-default-jmx-metrics.yaml index d28454ff3..d96202607 100644 --- a/src/main/resources/org/datadog/jmxfetch/new-gc-default-jmx-metrics.yaml +++ b/src/main/resources/org/datadog/jmxfetch/new-gc-default-jmx-metrics.yaml @@ -79,6 +79,17 @@ CollectionTime: alias: jvm.gc.major_collection_time metric_type: counter +- include: + domain: java.lang + type: GarbageCollector + name: G1 Mixed Generation + attribute: + CollectionCount: + alias: jvm.gc.major_collection_count + metric_type: counter + CollectionTime: + alias: jvm.gc.major_collection_time + metric_type: counter - include: domain: java.lang type: GarbageCollector @@ -89,4 +100,4 @@ metric_type: counter CollectionTime: alias: jvm.gc.major_collection_time - metric_type: counter \ No newline at end of file + metric_type: counter