Skip to content

Latest commit

 

History

History
41 lines (34 loc) · 2.04 KB

File metadata and controls

41 lines (34 loc) · 2.04 KB

Influx reporter

InfluxReporter sends measurements to Influx database.

Influx DB statement holds name of measurement, tags connected to this measurement, fields and timestamp of measurement in following format:

<measurement name>,id=<UUID for this measurement>,statementType=<type of statement> value=<value of measurement> <timestamp of measurement>

Influx reporter has the following configuration parameters:

  • influxDbAddress: InfluxDB endpoint address (http://127.0.0.1:8086 by default). This parameter is optional.
  • influxUsername: Authentication username. This parameter is optional but should be set together with influxPassword.
  • influxPassword: Authentication passowrd. This parameter is optional but should be set together with influxUsername.
  • influxDbName: Database name (cassandradb by default). This parameter is optional.
  • influxRetentionPolicy: Retention policy (default by default). This parameter is optional.
  • influxPointsInBatch: Max points in batch before flush (1000 by default). This parameter is optional.
  • influxFlushPeriodInSeconds: Max period in seconds between time based flush (5 by default). This parameter is optional.

Here is an example configuration that uses Influx reporter:

reporters:
  - reporter: io.smartcat.cassandra.diagnostics.reporter.InfluxReporter
    options:
      influxDbAddress: http://127.0.0.1:8086
      influxUsername: admin
      influxPassword: password
      influxDbName: cassandradb
      influxRetentionPolicy: default
      influxPointsInBatch: 1000
      influxFlushPeriodInSeconds: 5

modules:
  - module: io.smartcat.cassandra.diagnostics.module.slowquery.SlowQueryModule
    measurement: slow_query
    options:
      slowQueryThresholdInMilliseconds: 10
    reporters:
      - io.smartcat.cassandra.diagnostics.reporter.TelegrafReporter