You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardexpand all lines: content/en/docs/collector/configuration.md
+22-1
Original file line number
Diff line number
Diff line change
@@ -379,10 +379,11 @@ The service section is used to configure what components are enabled in the
379
379
Collector based on the configuration found in the receivers, processors,
380
380
exporters, and extensions sections. If a component is configured, but not
381
381
defined within the service section then it is not enabled. The service section
382
-
consists of two sub-sections:
382
+
consists of three sub-sections:
383
383
384
384
- extensions
385
385
- pipelines
386
+
- telemetry
386
387
387
388
Extensions consist of a list of all extensions to enable. For example:
388
389
@@ -422,6 +423,26 @@ service:
422
423
exporters: [opencensus, zipkin]
423
424
```
424
425
426
+
Telemetry is where the telemetry for the collector itself can be configured. It has two subsections: `logs`and `metrics`.
427
+
428
+
The `logs` subsection allows configuration of the logs generated by the collector. By default the collector will write its logs to stderr with a log level of `INFO`. You can also add static key-value pairs to all logs using the `initial_fields` section. [View the full list of `logs` options here.](https://github.com/open-telemetry/opentelemetry-collector/blob/7666eb04c30e5cfd750db9969fe507562598f0ae/config/service.go#L41-L97)
429
+
430
+
The `metrics` subsection allows configuration of the metrics generated by the collector. By default the collector will generate basic metrics about itself and expose them for scraping at `localhost:8888/metrics` [View the full list of `metrics` options here.](https://github.com/open-telemetry/opentelemetry-collector/blob/7666eb04c30e5cfd750db9969fe507562598f0ae/config/service.go#L99-L111)
431
+
432
+
The following is an example telemetry configuration:
0 commit comments