Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct { Spans []MetricInfo `mapstructure:"spans"` Datapoints []MetricInfo `mapstructure:"datapoints"` Logs []MetricInfo `mapstructure:"logs"` }
Config for the connector. Each configuration field describes the metrics to produce from a specific signal.
type ExponentialHistogram ¶
type MetricInfo ¶
type MetricInfo struct { Name string `mapstructure:"name"` Description string `mapstructure:"description"` // Unit, if not-empty, will set the unit associated with the metric. // See: https://github.com/open-telemetry/opentelemetry-collector/blob/b06236cc794982916cc956f20828b3e18eb33264/pdata/pmetric/generated_metric.go#L72-L81 Unit string `mapstructure:"unit"` // IncludeResourceAttributes is a list of resource attributes that // needs to be included in the generated metric. If no resource // attribute is included in the list then all attributes are included. IncludeResourceAttributes []Attribute `mapstructure:"include_resource_attributes"` Attributes []Attribute `mapstructure:"attributes"` // Conditions are a set of OTTL condtions which are ORed. Data is // processed into metrics only if the sequence evaluates to true. Conditions []string `mapstructure:"conditions"` Histogram *Histogram `mapstructure:"histogram"` ExponentialHistogram *ExponentialHistogram `mapstructure:"exponential_histogram"` Sum *Sum `mapstructure:"sum"` }
MetricInfo defines the structure of the metric produced by the connector.
Click to show internal directories.
Click to hide internal directories.