Documentation
¶
Overview ¶
+kubebuilder:validation:Optional
Index ¶
Constants ¶
const ( // ReceiverOTLP collects logs from libraries and SDKs. ReceiverOTLP = "otlp" // ReceiverPrometheus collects metrics from environment and services. ReceiverPrometheus = "prometheus" // ProcessorEnrichment enriches metrics with discovery data. ProcessorEnrichment = "enrichment" // ProcessorMetrics generates metrics based on 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" // ProcessorRollup rolls up data to decrease cardinality. ProcessorRollup = "rollup" // ProcessorAgentGroup adds `agent_group` attribute. ProcessorAgentGroup = "attributes/agent_group" // 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, promRegistry *prometheus.Registry, engine iface.Engine, metricsAPI iface.ResponseMetricsAPI, serverGRPC *grpc.Server, ) (component.Factories, error)
AgentOTELComponents constructs OTEL Collector Factories for Agent.
func ControllerOTELComponents ¶
ControllerOTELComponents constructs OTEL Collector Factories for Controller.
Types ¶
type BatchConfig ¶ added in v0.1.2
type BatchConfig struct { // Timeout sets the time after which a batch will be sent regardless of size. Timeout config.Duration `json:"timeout" validate:"gt=0" default:"1s"` // SendBatchSize is the size of a batch which after hit, will trigger it to be sent. SendBatchSize uint32 `json:"send_batch_size" validate:"gt=0" default:"10000"` }
BatchConfig defines configuration for OTEL batch processor. swagger:model +kubebuilder:object:generate=true
func (*BatchConfig) DeepCopy ¶ added in v0.1.2
func (in *BatchConfig) DeepCopy() *BatchConfig
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new BatchConfig.
func (*BatchConfig) DeepCopyInto ¶ added in v0.1.2
func (in *BatchConfig) DeepCopyInto(out *BatchConfig)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type FxIn ¶ added in v0.1.2
type FxIn struct { fx.In Unmarshaller config.Unmarshaller Listener *listener.Listener PromClient promapi.Client TLSConfig *tls.Config ServerTLSConfig tlsconfig.ServerTLSConfig }
FxIn consumes parameters via Fx.
type OTELConfigConstructor ¶ added in v0.1.2
type OTELConfigConstructor struct {
Type Type
}
OTELConfigConstructor is the constructor for the OTEL collector configuration.
func (OTELConfigConstructor) Annotate ¶ added in v0.1.2
func (c OTELConfigConstructor) Annotate() fx.Option
Annotate provides fx options.
type OtelConfig ¶ added in v0.1.2
type OtelConfig struct { // BatchPrerollup configures batch prerollup processor. BatchPrerollup BatchConfig `json:"batch_prerollup"` // BatchPostrollup configures batch postrollup processor. BatchPostrollup BatchConfig `json:"batch_postrollup"` }
OtelConfig is the configuration for the OTEL collector. swagger:model +kubebuilder:object:generate=true
func (*OtelConfig) DeepCopy ¶ added in v0.1.2
func (in *OtelConfig) DeepCopy() *OtelConfig
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new OtelConfig.
func (*OtelConfig) DeepCopyInto ¶ added in v0.1.2
func (in *OtelConfig) DeepCopyInto(out *OtelConfig)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.