Documentation ¶
Index ¶
- type Config
- type Factory
- func (f *Factory) CreateDefaultConfig() configmodels.Exporter
- func (f *Factory) CreateMetricsExporter(logger *zap.Logger, cfg configmodels.Exporter) (component.MetricsExporterOld, error)
- func (f *Factory) CreateTraceExporter(logger *zap.Logger, config configmodels.Exporter) (component.TraceExporterOld, error)
- func (f *Factory) Type() string
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
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_golang.Labels `mapstructure:"const_labels"` }
Config defines configuration for Prometheus exporter.
type Factory ¶
type Factory struct { }
Factory is the factory for Prometheus exporter.
func (*Factory) CreateDefaultConfig ¶
func (f *Factory) CreateDefaultConfig() configmodels.Exporter
CreateDefaultConfig creates the default configuration for exporter.
func (*Factory) CreateMetricsExporter ¶
func (f *Factory) CreateMetricsExporter(logger *zap.Logger, cfg configmodels.Exporter) (component.MetricsExporterOld, error)
CreateMetricsExporter creates a metrics exporter based on this config.
func (*Factory) CreateTraceExporter ¶
func (f *Factory) CreateTraceExporter(logger *zap.Logger, config configmodels.Exporter) (component.TraceExporterOld, error)
CreateTraceExporter creates a trace exporter based on this config.
Click to show internal directories.
Click to hide internal directories.