Documentation
¶
Overview ¶
Package exportercreator implements exporter_creator that can instantiate other exporters at runtime.
Index ¶
Constants ¶
View Source
const ( ObserverEndpointTypeK8sCRD = observer.EndpointType("k8s.crd") ObserverEndpointTypeJSONFile = observer.EndpointType("jsonfile") )
Observer endpoint kinds used by k8s_observer, jsonfile_observer, etc. Older tagged github.com/open-telemetry/opentelemetry-collector-contrib/extension/observer modules may not export named constants for every kind; these values match the strings returned by real observer implementations.
Variables ¶
This section is empty.
Functions ¶
func NewFactory ¶
NewFactory creates a factory for exporter creator.
Types ¶
type Config ¶
type Config struct {
// WatchObservers are the extensions to listen to endpoints from.
WatchObservers []component.ID `mapstructure:"watch_observers"`
// Routing defines how telemetry is routed to dynamically created exporters.
Routing RoutingConfig `mapstructure:"routing"`
// DefaultExporters are static exporters to route unmatched telemetry to.
DefaultExporters []component.ID `mapstructure:"default_exporters"`
// contains filtered or unexported fields
}
Config defines configuration for exporter_creator.
type RoutingConfig ¶
type RoutingConfig struct {
// Rules is a list of routing rules that map resource attributes to endpoint properties.
Rules []RoutingRule `mapstructure:"rules"`
}
RoutingConfig defines the routing configuration for directing telemetry to exporters.
type RoutingRule ¶
type RoutingRule struct {
// ResourceAttribute is the resource attribute key to match (e.g., "k8s.pod.labels.app")
ResourceAttribute string `mapstructure:"resource_attribute"`
// EndpointProperty is the endpoint property to match against (e.g., "labels.app", "spec.region")
// Supports dot notation for nested fields
EndpointProperty string `mapstructure:"endpoint_property"`
}
RoutingRule defines a mapping between a resource attribute and an endpoint property.
Source Files
¶
Directories
¶
| Path | Synopsis |
|---|---|
|
internal
|
|
|
sharedcomponent
Package sharedcomponent exposes util functionality for receivers and exporters that need to share state between different signal types instances such as net.Listener or os.File.
|
Package sharedcomponent exposes util functionality for receivers and exporters that need to share state between different signal types instances such as net.Listener or os.File. |
Click to show internal directories.
Click to hide internal directories.