docs: fixed breaking tutorials (#16601)

pull/15887/head
Jay Clifford 10 months ago committed by GitHub
parent 127b6092af
commit 92d63be7de
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
  1. 6
      docs/sources/send-data/alloy/examples/alloy-kafka-logs.md
  2. 4
      docs/sources/send-data/alloy/examples/alloy-otel-logs.md

@ -4,6 +4,8 @@ menuTitle: Sending Logs to Loki via Kafka using Alloy
description: Configuring Grafana Alloy to receive logs via Kafka and send them to Loki.
weight: 250
killercoda:
comment: |
This file is used to generate the interactive tutorial for sending logs to Loki via Kafka using Alloy. Please do not change url's with placeholders from the code snippets. This tutorial is assumes they remain static.
title: Sending Logs to Loki via Kafka using Alloy
description: Configuring Grafana Alloy to receive logs via Kafka and send them to Loki.
backend:
@ -195,7 +197,7 @@ And finally, add the following configuration to the `config.alloy` file:
```alloy
loki.write "http" {
endpoint {
url = "http://<loki-addr>:3100/otlp/v1/logs"
url = "http://loki:3100/loki/api/v1/push"
}
}
```
@ -299,7 +301,7 @@ Finally, add the following configuration to the `config.alloy` file:
```alloy
otelcol.exporter.otlphttp "default" {
client {
endpoint = "http://<loki-addr>:3100/otlp/v1/logs"
endpoint = "http://loki:3100/otlp"
}
}
```

@ -4,6 +4,8 @@ menuTitle: Sending OpenTelemetry logs to Loki using Alloy
description: Configuring Grafana Alloy to send OpenTelemetry logs to Loki.
weight: 250
killercoda:
comment: |
This file is used to generate the interactive tutorial for sending logs to Loki via otel using Alloy. Please do not change url's with placeholders from the code snippets. This tutorial is assumes they remain static.
title: Sending OpenTelemetry logs to Loki using Alloy
description: Configuring Grafana Alloy to send OpenTelemetry logs to Loki.
backend:
@ -181,7 +183,7 @@ Now add the following configuration to the `config.alloy` file:
```alloy
otelcol.exporter.otlphttp "default" {
client {
endpoint = "http://<loki-addr>:3100/otlp/v1/logs"
endpoint = "http://loki:3100/otlp"
}
}
```

Loading…
Cancel
Save