CsvReporter没有在cassandra

时间:2016-02-25 22:04:42

标签: cassandra datastax metrics

我在cassandra节点上添加了以下文件

/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.+"

然后将此行添加到etc / dse / cassandra / cassandra-env.sh

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

然后最终重启DSE,/ etc / init.d / dse restart

我没有看到/ mnt / cassandra / metrics文件夹中的MetricsReported正在调出任何csv指标文件。

任何想法为什么?

2 个答案:

答案 0 :(得分:0)

检查日志,检查是否有类似的内容:

Trying to load metrics-reporter-config from file后跟Enabling CsvReporter to

指标记者可能无法创建指标目录......

答案 1 :(得分:-1)

就我而言,我只需将csv:更改为console: