Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewFactory ¶
Types ¶
type Config ¶
type Config struct { confighttp.ClientConfig `mapstructure:",squash"` scraperhelper.ControllerConfig `mapstructure:",squash"` // ResourceAttributes that added to scraped metrics. ResourceAttributes ResourceAttributesConfig `mapstructure:"resource_attributes"` }
type ResourceAttributeConfig ¶ added in v0.76.0
type ResourceAttributeConfig struct {
Enabled bool `mapstructure:"enabled"`
}
ResourceAttributeConfig provides configuration for a resource attribute.
type ResourceAttributesConfig ¶ added in v0.76.0
type ResourceAttributesConfig struct { ServiceName ResourceAttributeConfig `mapstructure:"service.name"` ServiceInstanceID ResourceAttributeConfig `mapstructure:"service.instance.id"` NetHostName ResourceAttributeConfig `mapstructure:"net.host.name"` NetHostPort ResourceAttributeConfig `mapstructure:"net.host.port"` HTTPScheme ResourceAttributeConfig `mapstructure:"http.scheme"` }
ResourceAttributesConfig allows users to configure the resource attributes.
Click to show internal directories.
Click to hide internal directories.