Skip to content

Commit

Permalink
chore: [release-3.0.x] docs: Update OTLP endpoint (#13241)
Browse files Browse the repository at this point in the history
Co-authored-by: J Stickler <julie.stickler@grafana.com>
  • Loading branch information
grafanabot and JStickler authored Jun 17, 2024
1 parent 1440aa5 commit 518d444
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 3 deletions.
8 changes: 7 additions & 1 deletion docs/sources/reference/loki-http-api.md
Original file line number Diff line number Diff line change
Expand Up @@ -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/<LOKI_VERSION>/send-data/otel/).

<!-- vale Google.Will = NO -->
{{< admonition type="note" >}}
When configuring the OpenTelemetry Collector, you must use `endpoint: http://<loki-addr>:3100/otlp`, as the collector automatically completes the endpoint. Entering the full endpoint will generate an error.
{{< /admonition >}}
<!-- vale Google.Will = YES -->

## Query logs at a single point in time

```bash
Expand Down
4 changes: 2 additions & 2 deletions docs/sources/send-data/otel/_index.md
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ You need to make the following changes to the [OpenTelemetry Collector config](h
```yaml
exporters:
otlphttp:
endpoint: http://<loki-addr>:3100/otlp/v1/logs
endpoint: http://<loki-addr>:3100/otlp
```
And enable it in `service.pipelines`:
Expand All @@ -57,7 +57,7 @@ exporters:
otlphttp:
auth:
authenticator: basicauth/otlp
endpoint: http://<loki-addr>:3100/otlp/v1/logs
endpoint: http://<loki-addr>:3100/otlp
service:
extensions: [basicauth/otlp]
Expand Down

0 comments on commit 518d444

Please sign in to comment.