Documentation ¶
Overview ¶
Package adapters is for data conversion.
Index ¶
- Variables
- func ConfigFromJSONString(configStr string) (map[string]interface{}, error)
- func ConfigFromString(configStr string) (map[interface{}]interface{}, error)
- func ConfigToContainerProbe(config map[interface{}]interface{}) (*corev1.Probe, error)
- func ConfigToMetricsPort(logger logr.Logger, config map[interface{}]interface{}) (int32, error)
- type AppSignals
- type ComponentType
- type CwaConfig
- type LogMetricsCollected
- type Logs
- type Metrics
- type MetricsCollected
- type TLS
- type Traces
- type TracesCollected
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // ErrInvalidYAML represents an error in the format of the configuration file. ErrInvalidYAML = errors.New("couldn't parse the yaml configuration") ErrInvalidJSON = errors.New("couldn't parse cloudwatch agent json configuration") )
View Source
var ( ErrNoServiceExtensions = errors.New("service property in the configuration doesn't contain extensions") ErrNoServiceExtensionHealthCheck = errors.New("no healthcheck extension available in service extension configuration") )
Functions ¶
func ConfigFromJSONString ¶
func ConfigFromString ¶
ConfigFromString extracts a configuration map from the given string. If the given string isn't a valid YAML, ErrInvalidYAML is returned.
func ConfigToContainerProbe ¶
ConfigToContainerProbe converts the incoming configuration object into a container probe or returns an error.
Types ¶
type AppSignals ¶ added in v1.2.1
type AppSignals struct {
TLS *TLS `json:"tls,omitempty"`
}
type ComponentType ¶
type ComponentType int
const ( ComponentTypeReceiver ComponentType = iota ComponentTypeExporter )
func (ComponentType) String ¶
func (c ComponentType) String() string
type CwaConfig ¶
type CwaConfig struct { Metrics *Metrics `json:"metrics,omitempty"` Logs *Logs `json:"logs,omitempty"` Traces *Traces `json:"traces,omitempty"` }
func (*CwaConfig) GetApplicationSignalsConfig ¶ added in v1.2.1
func (c *CwaConfig) GetApplicationSignalsConfig() *AppSignals
type LogMetricsCollected ¶ added in v1.2.1
type LogMetricsCollected struct { EMF *emf `json:"emf,omitempty"` ApplicationSignals *AppSignals `json:"application_signals,omitempty"` AppSignals *AppSignals `json:"app_signals,omitempty"` Kubernetes *kubernetes `json:"kubernetes,omitempty"` }
type Logs ¶ added in v1.2.1
type Logs struct {
LogMetricsCollected *LogMetricsCollected `json:"metrics_collected,omitempty"`
}
type Metrics ¶ added in v1.2.1
type Metrics struct {
MetricsCollected *MetricsCollected `json:"metrics_collected,omitempty"`
}
type MetricsCollected ¶ added in v1.2.1
type MetricsCollected struct { StatsD *statsD `json:"statsd,omitempty"` CollectD *collectD `json:"collectd,omitempty"` }
type Traces ¶ added in v1.2.1
type Traces struct {
TracesCollected *TracesCollected `json:"traces_collected,omitempty"`
}
type TracesCollected ¶ added in v1.2.1
type TracesCollected struct { XRay *xray `json:"xray,omitempty"` OTLP *otlp `json:"otlp,omitempty"` }
Click to show internal directories.
Click to hide internal directories.