2016-02-25 66 views
0

我已經添加了以下文件我卡桑德拉節點CsvReporter不隨地吐痰指標在卡桑德拉

/etc/dse/cassandra/metrics-reporter-config.yaml

csv: 
    - 
    outdir: '/mnt/cassandra/metrics' 
    period: 10 
    timeunit: 'SECONDS' 
    predicate: 
     color: "white" 
     useQualifiedName: true 
     patterns: 
     - "^org.apache.cassandra.metrics.Cache.+" 
     - "^org.apache.cassandra.metrics.ClientRequest.+" 
     - "^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.ColumnFamily.+" 
     - "^org.apache.cassandra.metrics.Streaming.+" 

,然後加入這一行對等/ DSE /卡桑德拉/ cassandra-env.sh

​JVM_OPTS="$JVM_OPTS -Dcassandra.metricsReporterConfigFile=metrics-reporter-config.yam" 

然後終於重新啓動DSE,/etc/init.d/dse重啓

我看不到任何由/ mnt/cassandra/metrics文件夾中的MetricsReported分發的csv度量文件。

有什麼想法爲什麼?

回答

0

檢查日誌,檢查是否有類似:

Trying to load metrics-reporter-config from file其次Enabling CsvReporter to

可能度量記者無法創建度量目錄左右...

-1

就我而言,我只是必須將csv:更改爲console: