Skip to content

Commit 4355d75

Browse files
committed
doc: add otlp ingestion endpoint to http api reference
1 parent 767a590 commit 4355d75

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

docs/sources/reference/loki-http-api.md

+11
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@ Authorization needs to be done separately, for example, using an open-source loa
2424
These endpoints are exposed by the `distributor`, `write`, and `all` components:
2525

2626
- [`POST /loki/api/v1/push`](#ingest-logs)
27+
- [`POST /otlp/v1/logs`](#ingest-logs-using-otlp)
2728

2829
A [list of clients]({{< relref "../send-data" >}}) can be found in the clients documentation.
2930

@@ -260,6 +261,16 @@ curl -H "Content-Type: application/json" \
260261
--data-raw '{"streams": [{ "stream": { "foo": "bar2" }, "values": [ [ "1570818238000000000", "fizzbuzz" ] ] }]}'
261262
```
262263

264+
## Ingest logs using OTLP
265+
266+
```bash
267+
POST /otlp/v1/logs
268+
```
269+
270+
`/otlp/v1/logs` lets the OpenTelemetry Collector send logs to Loki using `otlphttp` procotol.
271+
272+
For information on how to configure Loki, refer to the [OTel Collector topic](https://grafana.com/docs/loki/<LOKI_VERSION>/send-data/otel/).
273+
263274
## Query logs at a single point in time
264275

265276
```bash

0 commit comments

Comments
 (0)