> ## Documentation Index
> Fetch the complete documentation index at: https://otel.fyi/llms.txt
> Use this file to discover all available pages before exploring further.

# Cassandra

> OpenTelemetry exporter for Cassandra

# Cassandra Exporter

![Status](https://img.shields.io/badge/status-alpha-red)

**Available in:** `contrib`

**Maintainers:** [@atoulme](https://github.com/atoulme), [@emreyalvac](https://github.com/emreyalvac)

**Source:** [opentelemetry-collector-contrib](https://github.com/open-telemetry/opentelemetry-collector-contrib/tree/main/exporter/cassandraexporter)

## Supported Telemetry

![Logs](https://img.shields.io/badge/logs-alpha-blue) ![Traces](https://img.shields.io/badge/traces-alpha-orange)

## Overview

## Configuration options

The following settings can be optionally configured:

* `dsn` The Cassandra server DSN (Data Source Name), for example `127.0.0.1`.
  reference: [github.com/apache/cassandra-gocql-driver/v2](https://github.com/apache/cassandra-gocql-driver/)
* `port` (default = 9042): The Cassandra server port
* `timeout` (default = 10s): The Cassandra server connection timeout
* `keyspace` (default = otel): The keyspace name.
* `trace_table` (default = otel\_spans): The table name for traces.
* `replication` (default = class: SimpleStrategy, replication\_factor: 1): The strategy of
  replication. [https://cassandra.apache.org/doc/4.1/cassandra/architecture/dynamo.html#replication-strategy](https://cassandra.apache.org/doc/4.1/cassandra/architecture/dynamo.html#replication-strategy)
* `compression` (default = LZ4Compressor): [https://cassandra.apache.org/doc/4.0/cassandra/operating/compression.html](https://cassandra.apache.org/doc/4.0/cassandra/operating/compression.html)
* `auth` (default = username: "", password: "") Authorization for the Cassandra.

## Example

```yaml theme={null}
exporters:
  cassandra:
    dsn: 127.0.0.1
    port: 9042
    timeout: 10s
    keyspace: "otel"
    trace_table: "otel_spans"
    replication:
      class: "SimpleStrategy"
      replication_factor: 1
    compression:
      algorithm: "ZstdCompressor"
    auth:
      username: "your-username"
      password: "your-password"
```

## Configuration

### Example Configuration

```yaml theme={null}
cassandra:
  dsn: 127.0.0.1
  keyspace: "otel"
  trace_table: "otel_spans"
  timeout: 10s
  logs_table: "otel_logs"
  replication:
    class: "SimpleStrategy"
    replication_factor: 1
  compression:
    algorithm: "LZ4Compressor"
```

***

*Last generated: 2026-07-06*
