Documentation ¶
Index ¶
Constants ¶
View Source
const EuKeyPrefix = "eu01xx"
Variables ¶
This section is empty.
Functions ¶
func MetricViews ¶ added in v0.25.0
MetricViews return metric views for Kafka receiver.
func NewFactory ¶ added in v0.9.0
func NewFactory() component.ExporterFactory
NewFactory creates a factory for New Relic exporter.
Types ¶
type Config ¶
type Config struct { config.ExporterSettings `mapstructure:",squash"` // CommonConfig stores the base configuration for each endpoint. CommonConfig EndpointConfig `mapstructure:",squash"` // TracesConfig stores the configuration for the traces endpoint. TracesConfig EndpointConfig `mapstructure:"traces"` // MetricsConfig stores the configuration for the metrics endpoint. MetricsConfig EndpointConfig `mapstructure:"metrics"` // LogsConfig stores the configuration for the logs endpoint. LogsConfig EndpointConfig `mapstructure:"logs"` }
Config defines configuration options for the New Relic exporter.
type EndpointConfig ¶ added in v0.25.0
type EndpointConfig struct { // APIKey is the required authentication credentials for New Relic APIs. This field specifies the default key. APIKey string `mapstructure:"apikey"` // APIKeyHeader may be specified to instruct the exporter to extract the API key from the request context. APIKeyHeader string `mapstructure:"api_key_header"` // HostOverride overrides the endpoint. HostOverride string `mapstructure:"host_override"` // TimeoutSettings is the total amount of time spent attempting a request, // including retries, before abandoning and dropping data. Default is 5 // seconds. TimeoutSettings exporterhelper.TimeoutSettings `mapstructure:",squash"` // RetrySettings defines configuration for retrying batches in case of export failure. // The current supported strategy is exponential backoff. RetrySettings exporterhelper.RetrySettings `mapstructure:"retry"` // contains filtered or unexported fields }
EndpointConfig defines configuration for a single endpoint in the New Relic exporter.
Click to show internal directories.
Click to hide internal directories.