Documentation ¶
Overview ¶
Package host_info provides an otelcol.connector.host_info component.
Index ¶
- func NewFactory() connector.Factory
- type Arguments
- func (Arguments) ConnectorType() int
- func (args Arguments) Convert() (otelcomponent.Config, error)
- func (args Arguments) DebugMetricsConfig() otelcolCfg.DebugMetricsArguments
- func (args Arguments) Exporters() map[otelcomponent.DataType]map[otelcomponent.ID]otelcomponent.Component
- func (args Arguments) Extensions() map[otelcomponent.ID]otelextension.Extension
- func (args Arguments) NextConsumers() *otelcol.ConsumerArguments
- func (args *Arguments) SetToDefault()
- func (args *Arguments) Validate() error
- type Config
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewFactory ¶
Types ¶
type Arguments ¶
type Arguments struct { HostIdentifiers []string `alloy:"host_identifiers,attr,optional"` MetricsFlushInterval time.Duration `alloy:"metrics_flush_interval,attr,optional"` // Output configures where to send processed data. Required. Output *otelcol.ConsumerArguments `alloy:"output,block"` // DebugMetrics configures component internal metrics. Optional. DebugMetrics otelcolCfg.DebugMetricsArguments `alloy:"debug_metrics,block,optional"` }
Arguments configures the otelcol.connector.host_info component.
func (Arguments) ConnectorType ¶
ConnectorType() int implements connector.Arguments.
func (Arguments) Convert ¶
func (args Arguments) Convert() (otelcomponent.Config, error)
Convert implements connector.Arguments.
func (Arguments) DebugMetricsConfig ¶ added in v1.2.0
func (args Arguments) DebugMetricsConfig() otelcolCfg.DebugMetricsArguments
DebugMetricsConfig implements connector.Arguments.
func (Arguments) Exporters ¶
func (args Arguments) Exporters() map[otelcomponent.DataType]map[otelcomponent.ID]otelcomponent.Component
Exporters implements connector.Arguments.
func (Arguments) Extensions ¶
func (args Arguments) Extensions() map[otelcomponent.ID]otelextension.Extension
Extensions implements connector.Arguments.
func (Arguments) NextConsumers ¶
func (args Arguments) NextConsumers() *otelcol.ConsumerArguments
NextConsumers implements connector.Arguments.
func (*Arguments) SetToDefault ¶
func (args *Arguments) SetToDefault()
SetToDefault implements syntax.Defaulter.
type Config ¶
type Config struct { // HostIdentifiers defines the list of resource attributes used to derive // a unique `grafana.host.id` value. In most cases, this should be [ "host.id" ] HostIdentifiers []string `mapstructure:"host_identifiers"` MetricsFlushInterval time.Duration `mapstructure:"metrics_flush_interval"` }
Config defines the configuration options for the host_info connector.
Click to show internal directories.
Click to hide internal directories.