cassandraexporter

package module
v0.99.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 22, 2024 License: Apache-2.0 Imports: 15 Imported by: 2

README

Cassandra Exporter

Status
Stability alpha: traces, logs
Distributions contrib
Issues Open issues Closed issues
Code Owners @atoulme, @emreyalvac

Configuration options

The following settings can be optionally configured:

Example

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"

Documentation

Overview

Package cassandraexporter exports trace and log data to an Apache Cassandra instance.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewFactory

func NewFactory() exporter.Factory

Types

type Auth added in v0.93.0

type Auth struct {
	UserName string              `mapstructure:"username"`
	Password configopaque.String `mapstructure:"password"`
}

type Compression

type Compression struct {
	Algorithm string `mapstructure:"algorithm"`
}

type Config

type Config struct {
	DSN         string        `mapstructure:"dsn"`
	Port        int           `mapstructure:"port"`
	Timeout     time.Duration `mapstructure:"timeout"`
	Keyspace    string        `mapstructure:"keyspace"`
	TraceTable  string        `mapstructure:"trace_table"`
	LogsTable   string        `mapstructure:"logs_table"`
	Replication Replication   `mapstructure:"replication"`
	Compression Compression   `mapstructure:"compression"`
	Auth        Auth          `mapstructure:"auth"`
}

type Replication

type Replication struct {
	Class             string `mapstructure:"class"`
	ReplicationFactor int    `mapstructure:"replication_factor"`
}

Directories

Path Synopsis
internal

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL