addthis / metrics-reporter-config

Apache License 2.0
74 stars 52 forks source link

Predicate filters are not working #52

Open darkpssngr opened 6 years ago

darkpssngr commented 6 years ago

I'm using the following configuration to monitor my cassandra metrics. However the filters on histogram, time and meter don't seem to work. I'm still seeing the values in my influxDB. Is there anything wrong with my config?

influxdb:
  -
    period: 10
    timeunit: 'SECONDS'
    protocol: 'http'
    dbName: 'cassandra'
    connectionTimeout: 1000
    readTimeout: 1000
    tags:
     host: '${host.name}'
    prefix: ''
    hosts:
      - host: 'localhost'
        port: 8086
    measurementMappings:
     cassandra_Table_ReadLatency: org.apache.cassandra.metrics.Table.ReadLatency.*
    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.DroppedMessage.*"
        - "^org.apache.cassandra.metrics.ReadRepair.*"
        - "^org.apache.cassandra.metrics.Storage.*"
        - "^org.apache.cassandra.metrics.ThreadPools.*"
        - "^jvm.gc.*"
      histogram:
        color: "black"
        patterns:
        - metric: ".*"
          measure: "999percentile|mean|stddev"
      timer:
        color: "black"
        patterns:
        - metric: ".*"
          measure: "999percentile|mean|stddev"
      meter:
        color: "black"
        patterns:
        - metric: ".*"
          measure: "count"