Skip to content

Commit

Permalink
doc: add otlp ingestion endpoint to http api reference
Browse files Browse the repository at this point in the history
  • Loading branch information
vitoorgomes committed May 20, 2024
1 parent 767a590 commit 663bbe1
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions docs/sources/reference/loki-http-api.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ Authorization needs to be done separately, for example, using an open-source loa
These endpoints are exposed by the `distributor`, `write`, and `all` components:

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

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

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

## Ingest logs using OTLP

```bash
POST /otlp/v1/logs
```

`/otlp/v1/logs` allows OpenTelemetry Collector to send logs using `otlphttp` procotol into Loki.
Please refer to the [specific section]({{< relref "../send-data/otel" >}}) on how to configure.

## Query logs at a single point in time

```bash
Expand Down

0 comments on commit 663bbe1

Please sign in to comment.