From 1662b6feb9846573677eaa0ea20e212450ee5e5a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gr=C3=A9goire=20Bellon-Gervais?= Date: Sat, 28 Apr 2018 00:12:59 +0200 Subject: [PATCH] Metrics values have same names as old cassandra plugin (#4080) --- .../inputs/jolokia2/examples/cassandra.conf | 18 ++++++++++++++---- 1 file changed, 14 insertions(+), 4 deletions(-) diff --git a/plugins/inputs/jolokia2/examples/cassandra.conf b/plugins/inputs/jolokia2/examples/cassandra.conf index 3a419a6df..b8bb60980 100644 --- a/plugins/inputs/jolokia2/examples/cassandra.conf +++ b/plugins/inputs/jolokia2/examples/cassandra.conf @@ -10,6 +10,7 @@ name = "GarbageCollector" mbean = "java.lang:name=*,type=GarbageCollector" tag_keys = ["name"] + field_prefix = "$1_" [[inputs.jolokia2_agent]] urls = ["http://localhost:8778/jolokia"] @@ -19,67 +20,76 @@ name = "Cache" mbean = "org.apache.cassandra.metrics:name=*,scope=*,type=Cache" tag_keys = ["name", "scope"] + field_prefix = "$1_" [[inputs.jolokia2_agent.metric]] name = "Client" mbean = "org.apache.cassandra.metrics:name=*,type=Client" tag_keys = ["name"] + field_prefix = "$1_" [[inputs.jolokia2_agent.metric]] name = "ClientRequestMetrics" mbean = "org.apache.cassandra.metrics:name=*,type=ClientRequestMetrics" tag_keys = ["name"] + field_prefix = "$1_" [[inputs.jolokia2_agent.metric]] name = "ClientRequest" mbean = "org.apache.cassandra.metrics:name=*,scope=*,type=ClientRequest" tag_keys = ["name", "scope"] + field_prefix = "$1_" [[inputs.jolokia2_agent.metric]] name = "ColumnFamily" mbean = "org.apache.cassandra.metrics:keyspace=*,name=*,scope=*,type=ColumnFamily" tag_keys = ["keyspace", "name", "scope"] + field_prefix = "$2_" [[inputs.jolokia2_agent.metric]] name = "CommitLog" mbean = "org.apache.cassandra.metrics:name=*,type=CommitLog" tag_keys = ["name"] + field_prefix = "$1_" [[inputs.jolokia2_agent.metric]] name = "Compaction" mbean = "org.apache.cassandra.metrics:name=*,type=Compaction" tag_keys = ["name"] + field_prefix = "$1_" [[inputs.jolokia2_agent.metric]] name = "CQL" mbean = "org.apache.cassandra.metrics:name=*,type=CQL" tag_keys = ["name"] + field_prefix = "$1_" [[inputs.jolokia2_agent.metric]] name = "DroppedMessage" mbean = "org.apache.cassandra.metrics:name=*,scope=*,type=DroppedMessage" tag_keys = ["name", "scope"] + field_prefix = "$1_" [[inputs.jolokia2_agent.metric]] name = "FileCache" mbean = "org.apache.cassandra.metrics:name=*,type=FileCache" tag_keys = ["name"] + field_prefix = "$1_" [[inputs.jolokia2_agent.metric]] name = "ReadRepair" mbean = "org.apache.cassandra.metrics:name=*,type=ReadRepair" tag_keys = ["name"] - - [[inputs.jolokia2_agent.metric]] - name = "HintedHandoffManager" - mbean = "org.apache.cassandra.metrics:type=HintedHandoffManager" + field_prefix = "$1_" [[inputs.jolokia2_agent.metric]] name = "Storage" mbean = "org.apache.cassandra.metrics:name=*,type=Storage" tag_keys = ["name"] + field_prefix = "$1_" [[inputs.jolokia2_agent.metric]] name = "ThreadPools" mbean = "org.apache.cassandra.metrics:name=*,path=*,scope=*,type=ThreadPools" tag_keys = ["name", "path", "scope"] + field_prefix = "$1_"