Documentation
¶
Overview ¶
Package host_info provides an otelcol.connector.host_info component.
Index ¶
- Variables
- func NewFactory() connector.Factory
- type Arguments
- func (Arguments) ConnectorType() int
- func (args Arguments) Convert() (otelcomponent.Config, error)
- 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 ¶
View Source
var DefaultArguments = Arguments{ HostIdentifiers: []string{"host.id"}, MetricsFlushInterval: 60 * time.Second, }
DefaultArguments holds default settings for Arguments.
Functions ¶
func NewFactory ¶
Types ¶
type Arguments ¶
type Arguments struct { HostIdentifiers []string `river:"host_identifiers,attr,optional"` MetricsFlushInterval time.Duration `river:"metrics_flush_interval,attr,optional"` // Output configures where to send processed data. Required. Output *otelcol.ConsumerArguments `river:"output,block"` }
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) 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 river.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.