Documentation ¶
Index ¶
- Constants
- Variables
- type Action
- type Attributes
- type BasicAuthOTLP
- type Batch
- type ClientAuth
- type Error
- type Exporters
- type Extensions
- type Jaeger
- type JaegerExporter
- type JaegerGRPC
- type JaegerProtocols
- type JaegerThriftCompact
- type JaegerThriftHTTP
- type LoggingExporter
- type MemoryLimiter
- type Metrics
- type MetricsTelemetry
- type OTLP
- type OTLPAuth
- type OTLPHTTP
- type OTLPHTTPExporter
- type OTLPProtocols
- type OTelConfig
- type Obsy
- func (o *Obsy) Clone(namePrefix string) (instance.SidecarManager, error)
- func (o *Obsy) Initialize(ctx context.Context, namePrefix string, sysDeps *system.SystemDependencies) error
- func (o *Obsy) Instance() *instance.Instance
- func (o *Obsy) PreStart(ctx context.Context) error
- func (o *Obsy) SetImage(image string)
- func (o *Obsy) SetJaegerEndpoint(grpcPort, thriftCompactPort, thriftHttpPort int) error
- func (o *Obsy) SetJaegerExporter(endpoint string) error
- func (o *Obsy) SetLoggingExporter(logLevel string) error
- func (o *Obsy) SetOtelCollectorVersion(version string) error
- func (o *Obsy) SetOtelEndpoint(port int) error
- func (o *Obsy) SetOtlpExporter(endpoint, username, password string) error
- func (o *Obsy) SetPrometheusEndpoint(port int, jobName, scapeInterval string) error
- func (o *Obsy) SetPrometheusExporter(endpoint string) error
- func (o *Obsy) SetPrometheusRemoteWriteExporter(endpoint string) error
- type ObsyConfig
- type Pipelines
- type Processors
- type Prometheus
- type PrometheusConfig
- type PrometheusExporter
- type PrometheusRemoteWriteExporter
- type Receivers
- type ScrapeConfig
- type Service
- type StaticConfig
- type TLS
- type Telemetry
- type Traces
Constants ¶
const ( DefaultOtelOtlpPort = 8888 DefaultOtelMetricsPort = 9090 DefaultImage = "otel/opentelemetry-collector-contrib:%s" DefaultOtelCollectorVersion = "0.83.0" )
Variables ¶
var ( ErrCreatingOtelAgentInstance = errors.New("CreatingOtelAgentInstance", "error creating otel agent instance") ErrSettingOtelAgentImage = errors.New("SettingOtelAgentImage", "error setting image for otel agent instance") ErrAddingOtelAgentPort = errors.New("AddingOtelAgentPort", "error adding Otel Agent port") ErrCommittingOtelAgentInstance = errors.New("CommittingOtelAgentInstance", "error committing otel agent instance") ErrSettingOtelAgentEnv = errors.New("SettingOtelAgentEnv", "error setting environment variable for otel agent instance") ErrSettingOtelAgentCPU = errors.New("SettingOtelAgentCPU", "error setting CPU for otel agent instance") ErrSettingOtelAgentMemory = errors.New("SettingOtelAgentMemory", "error setting memory for otel agent instance") ErrMarshalingYAML = errors.New("MarshalingYAML", "error marshaling yaml") ErrAddingOtelAgentConfigFile = errors.New("AddingOtelAgentConfigFile", "error adding otel agent config file") ErrSettingOtelAgentCommand = errors.New("SettingOtelAgentCommand", "error setting otel agent command") ErrObsyInstanceNotInitialized = errors.New("ObsyInstanceNotInitialized", "obsy instance not initialized") ErrSettingNotAllowed = errors.New("SettingNotAllowed", "setting %s is only allowed in state 'None'. Current state is '%s'") ErrAddingVolume = errors.New("AddingVolume", "error adding volume") )
Functions ¶
This section is empty.
Types ¶
type Attributes ¶
type Attributes struct {
Actions []Action `yaml:"actions,omitempty"`
}
type BasicAuthOTLP ¶
type BasicAuthOTLP struct {
ClientAuth ClientAuth `yaml:"client_auth,omitempty"`
}
type ClientAuth ¶
type Exporters ¶
type Exporters struct { OTLPHTTP OTLPHTTPExporter `yaml:"otlphttp,omitempty"` Jaeger JaegerExporter `yaml:"jaeger,omitempty"` Prometheus PrometheusExporter `yaml:"prometheus,omitempty"` PrometheusRemoteWrite PrometheusRemoteWriteExporter `yaml:"prometheusremotewrite,omitempty"` Logging LoggingExporter `yaml:"logging,omitempty"` }
type Extensions ¶
type Extensions struct {
BasicAuthOTLP BasicAuthOTLP `yaml:"basicauth/otlp,omitempty"`
}
type Jaeger ¶
type Jaeger struct {
Protocols JaegerProtocols `yaml:"protocols,omitempty"`
}
type JaegerExporter ¶
type JaegerGRPC ¶
type JaegerGRPC struct {
Endpoint string `yaml:"endpoint,omitempty"`
}
type JaegerProtocols ¶
type JaegerProtocols struct { GRPC JaegerGRPC `yaml:"grpc,omitempty"` ThriftCompact JaegerThriftCompact `yaml:"thrift_compact,omitempty"` ThriftHTTP JaegerThriftHTTP `yaml:"thrift_http,omitempty"` }
type JaegerThriftCompact ¶
type JaegerThriftCompact struct {
Endpoint string `yaml:"endpoint,omitempty"`
}
type JaegerThriftHTTP ¶
type JaegerThriftHTTP struct {
Endpoint string `yaml:"endpoint,omitempty"`
}
type LoggingExporter ¶ added in v0.16.2
type LoggingExporter struct {
LogLevel string `yaml:"loglevel,omitempty"`
}
type MemoryLimiter ¶
type MetricsTelemetry ¶
type OTLP ¶
type OTLP struct {
Protocols OTLPProtocols `yaml:"protocols,omitempty"`
}
type OTLPHTTPExporter ¶
type OTLPProtocols ¶
type OTLPProtocols struct {
HTTP OTLPHTTP `yaml:"http,omitempty"`
}
type OTelConfig ¶
type OTelConfig struct { Extensions Extensions `yaml:"extensions,omitempty"` Receivers Receivers `yaml:"receivers,omitempty"` Exporters Exporters `yaml:"exporters,omitempty"` Service Service `yaml:"service,omitempty"` Processors Processors `yaml:"processors,omitempty"` }
type Obsy ¶
type Obsy struct {
// contains filtered or unexported fields
}
func (*Obsy) Clone ¶ added in v0.16.1
func (o *Obsy) Clone(namePrefix string) (instance.SidecarManager, error)
func (*Obsy) Initialize ¶
func (*Obsy) SetJaegerEndpoint ¶
SetJaegerEndpoint sets the Jaeger endpoint for the instance
func (*Obsy) SetJaegerExporter ¶
SetJaegerExporter sets the Jaeger exporter for the instance
func (*Obsy) SetLoggingExporter ¶ added in v0.16.2
SetLoggingExporter sets the logging exporter for the instance
func (*Obsy) SetOtelCollectorVersion ¶
SetOtelCollectorVersion sets the OpenTelemetry collector version for the instance
func (*Obsy) SetOtelEndpoint ¶
SetOtelEndpoint sets the OpenTelemetry endpoint for the instance
func (*Obsy) SetOtlpExporter ¶
SetOtlpExporter sets the OTLP exporter for the instance
func (*Obsy) SetPrometheusEndpoint ¶
SetPrometheusEndpoint sets the Prometheus endpoint for the instance
func (*Obsy) SetPrometheusExporter ¶
SetPrometheusExporter sets the Prometheus exporter for the instance
func (*Obsy) SetPrometheusRemoteWriteExporter ¶
SetPrometheusRemoteWriteExporter sets the Prometheus remote write exporter for the instance
type ObsyConfig ¶
type ObsyConfig struct {
// contains filtered or unexported fields
}
ObsyConfig represents the configuration for the obsy sidecar
type Processors ¶
type Processors struct { Batch Batch `yaml:"batch,omitempty"` MemoryLimiter MemoryLimiter `yaml:"memory_limiter,omitempty"` Attributes Attributes `yaml:"attributes,omitempty"` }
type Prometheus ¶
type Prometheus struct {
Config PrometheusConfig `yaml:"config,omitempty"`
}
type PrometheusConfig ¶
type PrometheusConfig struct {
ScrapeConfigs []ScrapeConfig `yaml:"scrape_configs,omitempty"`
}
type PrometheusExporter ¶
type PrometheusExporter struct {
Endpoint string `yaml:"endpoint,omitempty"`
}
type Receivers ¶
type Receivers struct { OTLP OTLP `yaml:"otlp,omitempty"` Prometheus Prometheus `yaml:"prometheus,omitempty"` Jaeger Jaeger `yaml:"jaeger,omitempty"` }
type ScrapeConfig ¶
type ScrapeConfig struct { JobName string `yaml:"job_name,omitempty"` ScrapeInterval string `yaml:"scrape_interval,omitempty"` StaticConfigs []StaticConfig `yaml:"static_configs,omitempty"` }
type StaticConfig ¶
type StaticConfig struct {
Targets []string `yaml:"targets,omitempty"`
}
type Telemetry ¶
type Telemetry struct {
Metrics MetricsTelemetry `yaml:"metrics,omitempty"`
}