Documentation ¶
Index ¶
- Constants
- Variables
- func AgentEndpoint(serviceName string) string
- func PromCfgToString(cfgs []yaml.MapSlice) string
- func ProtoDurToString(dur *durationpb.Duration) string
- type AggregatorConfig
- type AggregatorOTELConfig
- type AggregatorOTELExporters
- type AggregatorOTELProcessors
- type LoggingConfig
- type MetricsConfig
- type NodeConfig
- type NodeOTELConfig
- type NodeOTELExporters
- type NodeOTELProcessors
- type OTELSpec
- type ScrapeConfig
- type WALConfig
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 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 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) DeepCopyInto ¶ added in v0.9.2
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) DeepCopyInto ¶ added in v0.10.0
Click to show internal directories.
Click to hide internal directories.