Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewFactory ¶ added in v0.8.0
func NewFactory() component.ExporterFactory
NewFactory creates a factory for OTLP exporter.
Types ¶
type Config ¶
type Config struct { configmodels.ExporterSettings `mapstructure:",squash"` // squash ensures fields are correctly decoded in embedded struct. // The address on which the Prometheus scrape handler will be run on. Endpoint string `mapstructure:"endpoint"` // Namespace if set, exports metrics under the provided value. Namespace string `mapstructure:"namespace"` // ConstLabels are values that are applied for every exported metric. ConstLabels prometheus.Labels `mapstructure:"const_labels"` // SendTimestamps will send the underlying scrape timestamp with the export SendTimestamps bool `mapstructure:"send_timestamps"` }
Config defines configuration for Prometheus exporter.
Click to show internal directories.
Click to hide internal directories.