otel

package
v0.12.0-rc2 Latest Latest
Warning

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

Go to latest
Published: Nov 2, 2023 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

View Source
const (
	CollectorName             = "opni"
	MetricsCrdName            = "opni-monitoring"
	MetricsFeatureFlag        = "otel-metrics"
	MetricsServiceAccountName = "opni-otel-prometheus-agent"
)

Variables

View Source
var (
	OTELTemplates *template.Template
)

Functions

func AgentEndpoint

func AgentEndpoint(serviceName string) string

func PromCfgToString added in v0.9.2

func PromCfgToString(cfgs []yaml.MapSlice) string

func ProtoDurToString added in v0.9.2

func ProtoDurToString(dur *durationpb.Duration) string

Types

type AggregatorConfig added in v0.9.2

type AggregatorConfig struct {
	AgentEndpoint string
	LogsEnabled   bool
	Metrics       MetricsConfig
	Containerized bool
	LogLevel      string
	OTELConfig    AggregatorOTELConfig
}

func (AggregatorConfig) MetricReceivers added in v0.9.2

func (o AggregatorConfig) MetricReceivers() []string

type AggregatorOTELConfig added in v0.12.0

type AggregatorOTELConfig struct {
	Processors *AggregatorOTELProcessors
	Exporters  *AggregatorOTELExporters
}

type AggregatorOTELExporters added in v0.12.0

type AggregatorOTELExporters struct {
	OTLPHTTP otlphttpexporter.Config
}

type AggregatorOTELProcessors added in v0.12.0

type AggregatorOTELProcessors struct {
	Batch         batchprocessor.Config
	MemoryLimiter memorylimiterprocessor.Config
}

type LoggingConfig added in v0.9.2

type LoggingConfig struct {
	Enabled   bool
	Receivers []string
}

type MetricsConfig added in v0.9.2

type MetricsConfig struct {
	Enabled             bool
	LogLevel            string
	ListenPort          int
	RemoteWriteEndpoint string
	WALDir              string
	// It becomes easier to marshal []promcfg.ScrapeConfig to yaml strings
	DiscoveredScrapeCfg string
	Spec                *OTELSpec
}

func (*MetricsConfig) DeepCopy added in v0.10.0

func (in *MetricsConfig) DeepCopy() *MetricsConfig

func (*MetricsConfig) DeepCopyInto added in v0.10.0

func (in *MetricsConfig) DeepCopyInto(out *MetricsConfig)

type NodeConfig added in v0.9.2

type NodeConfig struct {
	Instance      string
	Logs          LoggingConfig
	Metrics       MetricsConfig
	Containerized bool
	LogLevel      string
	OTELConfig    NodeOTELConfig
}

func (NodeConfig) MetricReceivers added in v0.9.2

func (d NodeConfig) MetricReceivers() []string

type NodeOTELConfig added in v0.12.0

type NodeOTELConfig struct {
	Processors *NodeOTELProcessors
	Exporters  *NodeOTELExporters
}

type NodeOTELExporters added in v0.12.0

type NodeOTELExporters struct {
	OTLP otlpexporter.Config
}

type NodeOTELProcessors added in v0.12.0

type NodeOTELProcessors struct {
	MemoryLimiter memorylimiterprocessor.Config
}

type OTELSpec added in v0.9.2

type OTELSpec struct {
	AdditionalScrapeConfigs []*ScrapeConfig `json:"additionalScrapeConfigs,omitempty"`
	Wal                     *WALConfig      `json:"wal,omitempty"`
	HostMetrics             *bool           `json:"hostMetrics,omitempty"`
}

func (*OTELSpec) DeepCopy added in v0.10.0

func (in *OTELSpec) DeepCopy() *OTELSpec

func (*OTELSpec) DeepCopyInto added in v0.9.2

func (in *OTELSpec) DeepCopyInto(out *OTELSpec)

type ScrapeConfig added in v0.9.2

type ScrapeConfig struct {
	JobName        string   `json:"jobName,omitempty"`
	Targets        []string `json:"targets,omitempty"`
	ScrapeInterval string   `json:"scrapeInterval,omitempty"`
}

func (*ScrapeConfig) DeepCopy added in v0.10.0

func (in *ScrapeConfig) DeepCopy() *ScrapeConfig

func (*ScrapeConfig) DeepCopyInto added in v0.10.0

func (in *ScrapeConfig) DeepCopyInto(out *ScrapeConfig)

type WALConfig added in v0.9.2

type WALConfig struct {
	Enabled           bool                 `json:"enabled,omitempty"`
	BufferSize        int64                `json:"bufferSize,omitempty"`
	TruncateFrequency *durationpb.Duration `json:"truncateFrequency,omitempty"`
}

func (*WALConfig) DeepCopy added in v0.10.0

func (in *WALConfig) DeepCopy() *WALConfig

func (*WALConfig) DeepCopyInto added in v0.10.0

func (in *WALConfig) DeepCopyInto(out *WALConfig)

Jump to

Keyboard shortcuts

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