Skip to content

Commit 0fb90c4

Browse files
codebotenotelbot[bot]maryliag
authored
collector: update resource attributes section (#8455)
Signed-off-by: alex boten <[email protected]> Co-authored-by: otelbot <[email protected]> Co-authored-by: Marylia Gutierrez <[email protected]>
1 parent 402d646 commit 0fb90c4

File tree

1 file changed

+18
-16
lines changed

1 file changed

+18
-16
lines changed

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

Lines changed: 18 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,24 @@ By default, the Collector exposes its own telemetry in two ways:
3030
interface which defaults to port `8888`.
3131
- [Logs](#configure-internal-logs) are emitted to `stderr` by default.
3232

33+
### Configure resource attributes
34+
35+
The Collector's automatically attaches the `service.name`, `service.version`,
36+
and `service.instance.id` (randomly generated) resource attributes to its
37+
internal telemetry signals. These can be disabled by setting the attribute value
38+
to `null` (ex. `service.name: null`).
39+
40+
If you'd like to add additional resource attributes to the Collector's internal
41+
telemetry signals (traces, metrics, and logs) you can set them under
42+
`service::telemetry::resource`:
43+
44+
```yaml
45+
service:
46+
telemetry:
47+
resource:
48+
attribute_key: 'attribute_value'
49+
```
50+
3351
### Configure internal metrics
3452
3553
#### OTLP exporter for internal metrics
@@ -55,22 +73,6 @@ service:
5573
endpoint: https://backend:4318
5674
```
5775

58-
If you'd like to add additional resource attributes to the Collector's internal
59-
telemetry signals (traces, metrics, and logs) you can set them under
60-
`service::telemetry::resource`:
61-
62-
```yaml
63-
service:
64-
telemetry:
65-
resource:
66-
attribute_key: 'attribute_value'
67-
```
68-
69-
`service.name`, `service.version`, and `service.instance.id` (randomly
70-
generated) resource attributes will be automatically attached to the Collector's
71-
internal telemetry signals. These can be disabled by setting the the attribute
72-
value to `null` (ex. `service.name: null`).
73-
7476
#### Prometheus endpoint for internal metrics
7577

7678
Alternatively, you can expose the Prometheus endpoint to one specific or all

0 commit comments

Comments
 (0)