Metrics values have same names as old cassandra plugin (#4080)

This commit is contained in:
Grégoire Bellon-Gervais 2018-04-28 00:12:59 +02:00 committed by Daniel Nelson
parent 908170b207
commit 1662b6feb9
1 changed files with 14 additions and 4 deletions

View File

@ -10,6 +10,7 @@
name = "GarbageCollector" name = "GarbageCollector"
mbean = "java.lang:name=*,type=GarbageCollector" mbean = "java.lang:name=*,type=GarbageCollector"
tag_keys = ["name"] tag_keys = ["name"]
field_prefix = "$1_"
[[inputs.jolokia2_agent]] [[inputs.jolokia2_agent]]
urls = ["http://localhost:8778/jolokia"] urls = ["http://localhost:8778/jolokia"]
@ -19,67 +20,76 @@
name = "Cache" name = "Cache"
mbean = "org.apache.cassandra.metrics:name=*,scope=*,type=Cache" mbean = "org.apache.cassandra.metrics:name=*,scope=*,type=Cache"
tag_keys = ["name", "scope"] tag_keys = ["name", "scope"]
field_prefix = "$1_"
[[inputs.jolokia2_agent.metric]] [[inputs.jolokia2_agent.metric]]
name = "Client" name = "Client"
mbean = "org.apache.cassandra.metrics:name=*,type=Client" mbean = "org.apache.cassandra.metrics:name=*,type=Client"
tag_keys = ["name"] tag_keys = ["name"]
field_prefix = "$1_"
[[inputs.jolokia2_agent.metric]] [[inputs.jolokia2_agent.metric]]
name = "ClientRequestMetrics" name = "ClientRequestMetrics"
mbean = "org.apache.cassandra.metrics:name=*,type=ClientRequestMetrics" mbean = "org.apache.cassandra.metrics:name=*,type=ClientRequestMetrics"
tag_keys = ["name"] tag_keys = ["name"]
field_prefix = "$1_"
[[inputs.jolokia2_agent.metric]] [[inputs.jolokia2_agent.metric]]
name = "ClientRequest" name = "ClientRequest"
mbean = "org.apache.cassandra.metrics:name=*,scope=*,type=ClientRequest" mbean = "org.apache.cassandra.metrics:name=*,scope=*,type=ClientRequest"
tag_keys = ["name", "scope"] tag_keys = ["name", "scope"]
field_prefix = "$1_"
[[inputs.jolokia2_agent.metric]] [[inputs.jolokia2_agent.metric]]
name = "ColumnFamily" name = "ColumnFamily"
mbean = "org.apache.cassandra.metrics:keyspace=*,name=*,scope=*,type=ColumnFamily" mbean = "org.apache.cassandra.metrics:keyspace=*,name=*,scope=*,type=ColumnFamily"
tag_keys = ["keyspace", "name", "scope"] tag_keys = ["keyspace", "name", "scope"]
field_prefix = "$2_"
[[inputs.jolokia2_agent.metric]] [[inputs.jolokia2_agent.metric]]
name = "CommitLog" name = "CommitLog"
mbean = "org.apache.cassandra.metrics:name=*,type=CommitLog" mbean = "org.apache.cassandra.metrics:name=*,type=CommitLog"
tag_keys = ["name"] tag_keys = ["name"]
field_prefix = "$1_"
[[inputs.jolokia2_agent.metric]] [[inputs.jolokia2_agent.metric]]
name = "Compaction" name = "Compaction"
mbean = "org.apache.cassandra.metrics:name=*,type=Compaction" mbean = "org.apache.cassandra.metrics:name=*,type=Compaction"
tag_keys = ["name"] tag_keys = ["name"]
field_prefix = "$1_"
[[inputs.jolokia2_agent.metric]] [[inputs.jolokia2_agent.metric]]
name = "CQL" name = "CQL"
mbean = "org.apache.cassandra.metrics:name=*,type=CQL" mbean = "org.apache.cassandra.metrics:name=*,type=CQL"
tag_keys = ["name"] tag_keys = ["name"]
field_prefix = "$1_"
[[inputs.jolokia2_agent.metric]] [[inputs.jolokia2_agent.metric]]
name = "DroppedMessage" name = "DroppedMessage"
mbean = "org.apache.cassandra.metrics:name=*,scope=*,type=DroppedMessage" mbean = "org.apache.cassandra.metrics:name=*,scope=*,type=DroppedMessage"
tag_keys = ["name", "scope"] tag_keys = ["name", "scope"]
field_prefix = "$1_"
[[inputs.jolokia2_agent.metric]] [[inputs.jolokia2_agent.metric]]
name = "FileCache" name = "FileCache"
mbean = "org.apache.cassandra.metrics:name=*,type=FileCache" mbean = "org.apache.cassandra.metrics:name=*,type=FileCache"
tag_keys = ["name"] tag_keys = ["name"]
field_prefix = "$1_"
[[inputs.jolokia2_agent.metric]] [[inputs.jolokia2_agent.metric]]
name = "ReadRepair" name = "ReadRepair"
mbean = "org.apache.cassandra.metrics:name=*,type=ReadRepair" mbean = "org.apache.cassandra.metrics:name=*,type=ReadRepair"
tag_keys = ["name"] tag_keys = ["name"]
field_prefix = "$1_"
[[inputs.jolokia2_agent.metric]]
name = "HintedHandoffManager"
mbean = "org.apache.cassandra.metrics:type=HintedHandoffManager"
[[inputs.jolokia2_agent.metric]] [[inputs.jolokia2_agent.metric]]
name = "Storage" name = "Storage"
mbean = "org.apache.cassandra.metrics:name=*,type=Storage" mbean = "org.apache.cassandra.metrics:name=*,type=Storage"
tag_keys = ["name"] tag_keys = ["name"]
field_prefix = "$1_"
[[inputs.jolokia2_agent.metric]] [[inputs.jolokia2_agent.metric]]
name = "ThreadPools" name = "ThreadPools"
mbean = "org.apache.cassandra.metrics:name=*,path=*,scope=*,type=ThreadPools" mbean = "org.apache.cassandra.metrics:name=*,path=*,scope=*,type=ThreadPools"
tag_keys = ["name", "path", "scope"] tag_keys = ["name", "path", "scope"]
field_prefix = "$1_"