Documentation ¶
Overview ¶
Package collectdreceiver implements a receiver that can be used by the Opentelemetry collector to receive traces from CollectD http_write plugin in JSON format.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func LabelsFromName ¶
LabelsFromName tries to pull out dimensions out of name in the format "name[k=v,f=x]-more_name". For the example above it would return "name-more_name" and extract dimensions (k,v) and (f,x). If something unexpected is encountered it returns the original metric name.
The code tries to avoid allocation by using local slices and avoiding calls to functions like strings.Slice.
func NewFactory ¶ added in v0.9.0
func NewFactory() component.ReceiverFactory
NewFactory creates a factory for collectd receiver.
Types ¶
type Config ¶
type Config struct { config.ReceiverSettings `mapstructure:",squash"` confignet.TCPAddr `mapstructure:",squash"` Timeout time.Duration `mapstructure:"timeout"` AttributesPrefix string `mapstructure:"attributes_prefix"` Encoding string `mapstructure:"encoding"` }
Config defines configuration for Collectd receiver.
Click to show internal directories.
Click to hide internal directories.