Skip to content

Slow Query Module - statement not logged #296

@milannister

Description

@milannister

vagrant@192:~$ curl localhost:8998/version
1.4.10

cassandra-diagnostics.yml:

global:
  systemName: "smartcat-cassandra-cluster"

reporters:
  - reporter: io.smartcat.cassandra.diagnostics.reporter.LogReporter

modules:
  - module: io.smartcat.cassandra.diagnostics.module.heartbeat.HeartbeatModule
    measurement: heartbeat
    options:
      period: 15
      timeunit: MINUTES
    reporters:
      - io.smartcat.cassandra.diagnostics.reporter.LogReporter
  - module: io.smartcat.cassandra.diagnostics.module.slowquery.SlowQueryModule
    measurement: slow_query #optional
    options:
      slowQueryThresholdInMilliseconds: 20 #optional
      slowQueryReportEnabled: true #optional
      slowQueryCountReportEnabled: true #optional
      slowQueryCountReportPeriod: 30 #optional
      slowQueryCountReportTimeunit: SECONDS #optional
      queryTypesToLog: # optional
        - ALL

Line in the log:

INFO  [cassandra-diagnostics-connector-0] 2017-12-25 16:04:18,965 LogReporter.java:37 - SIMPLE Measurement SLOW_QUERY [time=1514217853219, value=5746.0, tags={host=192.168.34, systemName=smartcat-cassandra-cluster, statementType=SELECT}, fields={statement=, client=/192.168.34.21:49894, consistencyLevel=QUORUM}]

Note that statement= field is empty. I would expect statement to provide the actual slow query statement.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions