Skip to content

Commit 449f234

Browse files
authored
collector: update internal logs config to include OTLP export (#5702)
Signed-off-by: Alex Boten <[email protected]>
1 parent 60c9c3e commit 449f234

File tree

1 file changed

+24
-2
lines changed

1 file changed

+24
-2
lines changed

content/en/docs/collector/internal-telemetry.md

+24-2
Original file line numberDiff line numberDiff line change
@@ -104,6 +104,21 @@ journalctl | grep otelcol | grep Error
104104

105105
{{% /tab %}} {{< /tabpane >}}
106106

107+
The following configuration can be used to emit internal logs from the Collector
108+
to an OTLP/gRPC backend:
109+
110+
```yaml
111+
service:
112+
telemetry:
113+
logs:
114+
processors:
115+
- batch:
116+
exporter:
117+
otlp:
118+
protocol: grpc/protobuf
119+
endpoint: https://backend:4317
120+
```
121+
107122
### Configure internal traces
108123

109124
The Collector does not expose traces by default, but it can be configured to.
@@ -141,8 +156,8 @@ Note that the `tracer_provider` section there corresponds to `traces` here.
141156
The Collector can be configured to push its own telemetry to an
142157
[OTLP receiver](https://github.com/open-telemetry/opentelemetry-collector/tree/main/receiver/otlpreceiver)
143158
and send the data through configured pipelines. In the following example, the
144-
Collector is configured to push metrics and traces every 10s using OTLP gRPC to
145-
`localhost:14317`:
159+
Collector is configured to push metrics, traces, and logs every 10s using OTLP
160+
gRPC to `localhost:14317`:
146161

147162
```yaml
148163
receivers:
@@ -176,6 +191,13 @@ service:
176191
otlp:
177192
protocol: grpc/protobuf
178193
endpoint: http://localhost:14317
194+
logs:
195+
processors:
196+
- batch:
197+
exporter:
198+
otlp:
199+
protocol: grpc/protobuf
200+
endpoint: http://localhost:14317
179201
```
180202

181203
{{% alert title="Caution" color="warning" %}}

0 commit comments

Comments
 (0)