otel

package
v0.9.2-rc2 Latest Latest
Warning

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

Go to latest
Published: Apr 24, 2023 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

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

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
}

func (AggregatorConfig) MetricReceivers added in v0.9.2

func (o AggregatorConfig) MetricReceivers() []string

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
	ListenPort          int
	RemoteWriteEndpoint string
	WALDir              string
	// It becomes easier to marshal []promcfg.ScrapeConfig to yaml strings
	DiscoveredScrapeCfg string
	Spec                *OTELSpec
}

type NodeConfig added in v0.9.2

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

func (NodeConfig) MetricReceivers added in v0.9.2

func (d NodeConfig) MetricReceivers() []string

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) DeepCopyInto added in v0.9.2

func (o *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"`
}

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"`
}

Jump to

Keyboard shortcuts

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