otel

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Aug 31, 2022 License: AGPL-3.0 Imports: 32 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// ReceiverOTLP collects traces and logs from libraries and SDKs.
	ReceiverOTLP = "otlp"
	// ReceiverPrometheus collects metrics from environment and services.
	ReceiverPrometheus = "prometheus"

	// ProcessorEnrichment enriches traces, logs and metrics with discovery data.
	ProcessorEnrichment = "enrichment"
	// ProcessorMetrics generates metrics based on traces and logs and exposes them
	// on application prometheus metrics endpoint.
	ProcessorMetrics = "metrics"
	// ProcessorBatchPrerollup batches incoming data before rolling up. This is
	// required, as rollup processor can only roll up data inside a single batch.
	ProcessorBatchPrerollup = "batch/prerollup"
	// ProcessorBatchPostrollup batches data after rolling up, as roll up process
	// shrinks number of data points significantly.
	ProcessorBatchPostrollup = "batch/postrollup"
	// ProcessorBatchMetricsFast batches metrics in small and fast packages. Used
	// in flow control policy.
	ProcessorBatchMetricsFast = "batch/metrics-fast"
	// ProcessorRollup rolls up data to decrease cardinality.
	ProcessorRollup = "rollup"

	// ExporterLogging exports telemetry using Aperture logger.
	ExporterLogging = "aperturelogging"
	// ExporterPrometheusRemoteWrite exports metrics to local prometheus instance.
	ExporterPrometheusRemoteWrite = "prometheusremotewrite"
)

Variables

This section is empty.

Functions

func AgentOTELComponents

func AgentOTELComponents(cache *entitycache.EntityCache,
	agentInfo *agentinfo.AgentInfo,
	promRegistry *prometheus.Registry,
	engine iface.Engine,
) (component.Factories, error)

AgentOTELComponents constructs OTEL Collector Factories for Agent.

func ControllerOTELComponents

func ControllerOTELComponents() (component.Factories, error)

ControllerOTELComponents constructs OTEL Collector Factories for Controller.

func ProvideAnnotatedAgentConfig

func ProvideAnnotatedAgentConfig() fx.Option

ProvideAnnotatedAgentConfig provides annotated OTEL config for agent.

func ProvideAnnotatedControllerConfig

func ProvideAnnotatedControllerConfig() fx.Option

ProvideAnnotatedControllerConfig provides annotated OTEL config for controller.

Types

type Batch

type Batch struct {
	// Timeout sets the time after which a batch will be sent regardless of size.
	Timeout config.Duration `json:"timeout"`
	// SendBatchSize is the size of a batch which after hit, will trigger it to be sent.
	SendBatchSize uint32 `json:"send_batch_size"`
}

Batch defines configuration for OTEL batch processor.

Jump to

Keyboard shortcuts

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