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 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 }
func (AggregatorConfig) MetricReceivers ¶ added in v0.9.2
func (o AggregatorConfig) MetricReceivers() []string
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 }
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
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 (s *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.