我对石墨有以下配置:-
graphite:
-
period: 10
timeunit: 'SECONDS'
prefix: 'cassandra'
hosts:
- host: '192.168.x.x'
port: 2003
predicate:
color: "white"
useQualifiedName: true
patterns:
- "^org.apache.cassandra.metrics.Cache.+"
- "^org.apache.cassandra.metrics.ClientRequest.+" # includes ClientRequestMetrics
- "^org.apache.cassandra.metrics.CommitLog.+"
- "^org.apache.cassandra.metrics.Compaction.+"
- "^org.apache.cassandra.metrics.DroppedMetrics.+"
- "^org.apache.cassandra.metrics.ReadRepair.+"
- "^org.apache.cassandra.metrics.Storage.+"
- "^org.apache.cassandra.metrics.ThreadPools.+"
- "^org.apache.cassandra.metrics:type=Table,keyspace=*,scope=*,name=*"
一切正常,但是当我包含最后一个metric(“ ^ org.apache.cassandra.metrics:type = Table,keyspace = ,scope = ,name = *”)模式时,它显示以下错误:-
org.yaml.snakeyaml.scanner.ScannerException: while scanning for the next token; found character '\t' that cannot start any token; in 'reader', line 22, column 1:
因为我想获取键空间中特定表的表级指标。 那么我应该如何为表级指标指定模式?
谢谢。