Documentation ¶
Overview ¶
Package elastic contains the core functionality for an OpenTelemetry Collector exporter for Elastic APM.
Package elastic contains an opentelemetry-collector exporter for Elastic APM.
Package elastic contains an opentelemetry-collector exporter for Elastic APM.
Package elastic contains an opentelemetry-collector exporter for Elastic APM.
Package elastic contains an opentelemetry-collector exporter for Elastic APM.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct { // APMServerURLs holds the APM Server URL(s). // // This is required. APMServerURLs []string // APIKey holds an API Key for authorization. // // This is required if APM Server has API Key authorization enabled. // // https://www.elastic.co/guide/en/apm/server/7.7/api-key-settings.html APIKey string // HTTPClient holds an *http.Client to use for communicating with the // APM Server(s). // // This is optional, and a new http.Client will be constructed if // unspecified. HTTPClient *http.Client // Logger holds a logger for logging the exporter's internal behaviour. // // This is optional, and zap.NewNop() will be used if Logger is nil. Logger *zap.Logger // SecretToken holds the secret token for authorization. // // This is required if APM Server has secret token authorization enabled. // // https://www.elastic.co/guide/en/apm/server/7.7/secret-token.html SecretToken string }
Config holds configuration for NewExporter.
type Exporter ¶
type Exporter struct {
// contains filtered or unexported fields
}
Exporter is an Elastic APM exporter for OpenTelemetry Collector.
func NewExporter ¶
NewExporter creates a new Exporter with config.
func (*Exporter) PushMetricsData ¶
PushMetricsData pushes metrics data to Elastic APM Server, returning the number of timeseries that were dropped along with any errors.
type MetricsData ¶
type MetricsData struct { Node *commonpb.Node Resource *resourcepb.Resource Metrics []*metricspb.Metric }
MetricsData is a struct that groups proto metrics with a unique node and a resource.
Notes ¶
Bugs ¶
apm-agent-go panics on marshalling if / status code is set but URL is not.
c.model.HTTP = &c.http