From 518d4449736a404e36ec59cbc18f2bff95ba8802 Mon Sep 17 00:00:00 2001 From: "Grot (@grafanabot)" <43478413+grafanabot@users.noreply.github.com> Date: Mon, 17 Jun 2024 20:10:28 +0200 Subject: [PATCH] chore: [release-3.0.x] docs: Update OTLP endpoint (#13241) Co-authored-by: J Stickler --- docs/sources/reference/loki-http-api.md | 8 +++++++- docs/sources/send-data/otel/_index.md | 4 ++-- 2 files changed, 9 insertions(+), 3 deletions(-) diff --git a/docs/sources/reference/loki-http-api.md b/docs/sources/reference/loki-http-api.md index 4cf10de198c02..792e267074b6a 100644 --- a/docs/sources/reference/loki-http-api.md +++ b/docs/sources/reference/loki-http-api.md @@ -268,10 +268,16 @@ curl -H "Content-Type: application/json" \ POST /otlp/v1/logs ``` -`/otlp/v1/logs` lets the OpenTelemetry Collector send logs to Loki using `otlphttp` procotol. +`/otlp/v1/logs` lets the OpenTelemetry Collector send logs to Loki using `otlphttp` protocol. For information on how to configure Loki, refer to the [OTel Collector topic](https://grafana.com/docs/loki//send-data/otel/). + +{{< admonition type="note" >}} +When configuring the OpenTelemetry Collector, you must use `endpoint: http://:3100/otlp`, as the collector automatically completes the endpoint. Entering the full endpoint will generate an error. +{{< /admonition >}} + + ## Query logs at a single point in time ```bash diff --git a/docs/sources/send-data/otel/_index.md b/docs/sources/send-data/otel/_index.md index 4b28cbf16c7c2..cb6607eeaff0f 100644 --- a/docs/sources/send-data/otel/_index.md +++ b/docs/sources/send-data/otel/_index.md @@ -30,7 +30,7 @@ You need to make the following changes to the [OpenTelemetry Collector config](h ```yaml exporters: otlphttp: - endpoint: http://:3100/otlp/v1/logs + endpoint: http://:3100/otlp ``` And enable it in `service.pipelines`: @@ -57,7 +57,7 @@ exporters: otlphttp: auth: authenticator: basicauth/otlp - endpoint: http://:3100/otlp/v1/logs + endpoint: http://:3100/otlp service: extensions: [basicauth/otlp]