esexporter

package
v0.0.0-...-51da36d Latest Latest
Warning

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

Go to latest
Published: Feb 20, 2024 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

View Source
const Type = "esexporter"

Variables

This section is empty.

Functions

func New

func New(config interface{}, telemetry *component.TelemetryTools) exporter.Exporter

Types

type Config

type Config struct {
	EsHost  string `mapstructure:"es_host"`
	EsIndex string `mapstructure:"es_index"`
}

func (*Config) GetEsHost

func (cfg *Config) GetEsHost() string

func (*Config) GetEsIndexName

func (cfg *Config) GetEsIndexName() string

type EsExporter

type EsExporter struct {
	// contains filtered or unexported fields
}

func (*EsExporter) Consume

func (e *EsExporter) Consume(dataGroup *model.DataGroup) error

type TraceData

type TraceData struct {
	Name      string            `json:"name"`
	Metrics   map[string]int64  `json:"metrics"`
	Labels    map[string]string `json:"labels"`
	Timestamp uint64            `json:"timestamp"`
}

Jump to

Keyboard shortcuts

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