* rename DoubleSum -> Sum * update changelog * revert pict changes |
||
|---|---|---|
| .. | ||
| img | ||
| testdata | ||
| DESIGN.md | ||
| README.md | ||
| config.go | ||
| config_test.go | ||
| exporter.go | ||
| exporter_test.go | ||
| factory.go | ||
| factory_test.go | ||
| helper.go | ||
| helper_test.go | ||
| testutil_test.go | ||
README.md
Prometheus Remote Write Exporter
Prometheus Remote Write Exporter sends OpenTelemetry metrics to Prometheus remote write compatible backends such as Cortex and Thanos. By default, this exporter requires TLS and offers queued retry capabilities.
Supported pipeline types: metrics
⚠️ Non-cumulative monotonic, histogram, and summary OTLP metrics are dropped by this exporter.
A design doc is available to document in detail how this exporter works.
Getting Started
The following settings are required:
endpoint(no default): The remote write URL to send remote write samples.
By default, TLS is enabled:
insecure(default =false): whether to enable client transport security for the exporter's connection.
As a result, the following parameters are also required:
cert_file(no default): path to the TLS cert to use for TLS required connections. Should only be used ifinsecureis set to false.key_file(no default): path to the TLS key to use for TLS required connections. Should only be used ifinsecureis set to false.
The following settings can be optionally configured:
external_labels: list of labels to be attached to each metric data pointheaders: additional headers attached to each HTTP request.- Note the following headers cannot be changed:
Content-Encoding,Content-Type,X-Prometheus-Remote-Write-Version, andUser-Agent.
- Note the following headers cannot be changed:
namespace: prefix attached to each exported metric name.remote_write_queue: fine tuning for queueing and sending of the outgoing remote writes.queue_size: number of OTLP metrics that can be queued.num_consumers: minimum number of workers to use to fan out the outgoing requests.
Example:
exporters:
prometheusremotewrite:
endpoint: "https://my-cortex:7900/api/v1/push"
Advanced Configuration
Several helper files are leveraged to provide additional capabilities automatically:
- HTTP settings
- TLS and mTLS settings
- Retry and timeout settings, note that the exporter doesn't support
sending_queuebut providesremote_write_queue.