File tree 1 file changed +24
-2
lines changed
content/en/docs/collector
1 file changed +24
-2
lines changed Original file line number Diff line number Diff line change @@ -104,6 +104,21 @@ journalctl | grep otelcol | grep Error
104
104
105
105
{{% /tab %}} {{< /tabpane >}}
106
106
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
+
107
122
# ## Configure internal traces
108
123
109
124
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.
141
156
The Collector can be configured to push its own telemetry to an
142
157
[OTLP receiver](https://github.com/open-telemetry/opentelemetry-collector/tree/main/receiver/otlpreceiver)
143
158
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` :
146
161
147
162
` ` ` yaml
148
163
receivers:
@@ -176,6 +191,13 @@ service:
176
191
otlp:
177
192
protocol: grpc/protobuf
178
193
endpoint: http://localhost:14317
194
+ logs:
195
+ processors:
196
+ - batch:
197
+ exporter:
198
+ otlp:
199
+ protocol: grpc/protobuf
200
+ endpoint: http://localhost:14317
179
201
` ` `
180
202
181
203
{{% alert title="Caution" color="warning" %}}
You can’t perform that action at this time.
0 commit comments