config

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Apr 14, 2023 License: Apache-2.0 Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AttributeAction

type AttributeAction struct {
	Action string `yaml:"action"`
	Key    string `yaml:"key"`
	Value  string `yaml:"value"`
}

type BatchProcessorConfig

type BatchProcessorConfig struct {
	SendBatchSize    int    `yaml:"send_batch_size"`
	Timeout          string `yaml:"timeout"`
	SendBatchMaxSize int    `yaml:"send_batch_max_size"`
}

type Config

type Config struct {
	Receivers  ReceiverConfig    `yaml:"receivers"`
	Exporters  ExporterConfig    `yaml:"exporters"`
	Processors ProcessorsConfig  `yaml:"processors"`
	Extensions ExtensionsConfig  `yaml:"extensions"`
	Service    OTLPServiceConfig `yaml:"service"`
}

type EndpointConfig

type EndpointConfig struct {
	Endpoint string `yaml:"endpoint,omitempty"`
}

type ExporterConfig

type ExporterConfig struct {
	OTLP     OTLPExporterConfig    `yaml:"otlp,omitempty"`
	OTLPHTTP OTLPExporterConfig    `yaml:"otlphttp,omitempty"`
	Logging  LoggingExporterConfig `yaml:"logging,omitempty"`
}

type ExtensionsConfig

type ExtensionsConfig struct {
	HealthCheck EndpointConfig `yaml:"health_check"`
}

type ExtractK8sMetadataConfig

type ExtractK8sMetadataConfig struct {
	Metadata []string `yaml:"metadata"`
}

type FilterProcessorConfig

type FilterProcessorConfig struct {
	Traces TraceConfig `yaml:"traces,omitempty"`
}

type K8sAttributesProcessorConfig

type K8sAttributesProcessorConfig struct {
	AuthType       string                   `yaml:"auth_type"`
	Passthrough    bool                     `yaml:"passthrough"`
	Extract        ExtractK8sMetadataConfig `yaml:"extract"`
	PodAssociation []PodAssociations        `yaml:"pod_association"`
}

type LoggingConfig

type LoggingConfig struct {
	Level string `yaml:"level"`
}

type LoggingExporterConfig

type LoggingExporterConfig struct {
	Verbosity string `yaml:"verbosity"`
}

type MemoryLimiterConfig

type MemoryLimiterConfig struct {
	CheckInterval        string `yaml:"check_interval"`
	LimitPercentage      int    `yaml:"limit_percentage"`
	SpikeLimitPercentage int    `yaml:"spike_limit_percentage"`
}

type MetricsConfig

type MetricsConfig struct {
	Address string `yaml:"address"`
}

type OTLPExporterConfig

type OTLPExporterConfig struct {
	Endpoint       string               `yaml:"endpoint,omitempty"`
	Headers        map[string]string    `yaml:"headers,omitempty"`
	TLS            TLSConfig            `yaml:"tls,omitempty"`
	SendingQueue   SendingQueueConfig   `yaml:"sending_queue,omitempty"`
	RetryOnFailure RetryOnFailureConfig `yaml:"retry_on_failure,omitempty"`
}

type OTLPReceiverConfig

type OTLPReceiverConfig struct {
	Protocols ReceiverProtocols `yaml:"protocols,omitempty"`
}

type OTLPServiceConfig

type OTLPServiceConfig struct {
	Pipelines  PipelinesConfig `yaml:"pipelines,omitempty"`
	Telemetry  TelemetryConfig `yaml:"telemetry,omitempty"`
	Extensions []string        `yaml:"extensions,omitempty"`
}

type PipelineConfig

type PipelineConfig struct {
	Receivers  []string `yaml:"receivers"`
	Processors []string `yaml:"processors"`
	Exporters  []string `yaml:"exporters"`
}

type PipelinesConfig

type PipelinesConfig struct {
	Traces  *PipelineConfig `yaml:"traces,omitempty"`
	Metrics *PipelineConfig `yaml:"metrics,omitempty"`
}

type PodAssociation

type PodAssociation struct {
	From string `yaml:"from"`
	Name string `yaml:"name,omitempty"`
}

type PodAssociations

type PodAssociations struct {
	Sources []PodAssociation `yaml:"sources"`
}

type ProcessorsConfig

type ProcessorsConfig struct {
	Batch         *BatchProcessorConfig         `yaml:"batch,omitempty"`
	MemoryLimiter *MemoryLimiterConfig          `yaml:"memory_limiter,omitempty"`
	K8sAttributes *K8sAttributesProcessorConfig `yaml:"k8sattributes,omitempty"`
	Resource      *ResourceProcessorConfig      `yaml:"resource,omitempty"`
	Filter        *FilterProcessorConfig        `yaml:"filter,omitempty"`
}

type ReceiverConfig

type ReceiverConfig struct {
	OpenCensus *EndpointConfig     `yaml:"opencensus,omitempty"`
	OTLP       *OTLPReceiverConfig `yaml:"otlp,omitempty"`
}

type ReceiverProtocols

type ReceiverProtocols struct {
	HTTP EndpointConfig `yaml:"http,omitempty"`
	GRPC EndpointConfig `yaml:"grpc,omitempty"`
}

type ResourceProcessorConfig

type ResourceProcessorConfig struct {
	Attributes []AttributeAction `yaml:"attributes"`
}

type RetryOnFailureConfig

type RetryOnFailureConfig struct {
	Enabled         bool   `yaml:"enabled"`
	InitialInterval string `yaml:"initial_interval"`
	MaxInterval     string `yaml:"max_interval"`
	MaxElapsedTime  string `yaml:"max_elapsed_time"`
}

type SendingQueueConfig

type SendingQueueConfig struct {
	Enabled   bool `yaml:"enabled"`
	QueueSize int  `yaml:"queue_size"`
}

type TLSConfig

type TLSConfig struct {
	Insecure bool `yaml:"insecure"`
}

type TelemetryConfig

type TelemetryConfig struct {
	Metrics MetricsConfig `yaml:"metrics"`
	Logs    LoggingConfig `yaml:"logs"`
}

type TraceConfig

type TraceConfig struct {
	Span []string `yaml:"span"`
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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