Skip to content

Commit 2f83f2b

Browse files
committed
Compiling and tests passing
1 parent e7bbf16 commit 2f83f2b

14 files changed

+908
-115
lines changed
+32
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
# Use this changelog template to create an entry for release notes.
2+
3+
# One of 'breaking', 'deprecation', 'new_component', 'enhancement', 'bug_fix'
4+
change_type: enhancement
5+
6+
# The name of the component, or a single word describing the area of concern, (e.g. otlpreceiver)
7+
component: service
8+
9+
# A brief description of the change. Surround your text with quotes ("") if it needs to start with a backtick (`).
10+
note: Add item count metrics defined in Pipeline Component Telemetry RFC
11+
12+
# One or more tracking issues or pull requests related to the change
13+
issues: [12812]
14+
15+
# (Optional) One or more lines of additional information to render under the primary note.
16+
# These lines will be padded with 2 spaces and then inserted directly into the document.
17+
# Use pipe (|) for multiline entries.
18+
subtext: |
19+
See [Pipeline Component Telemetry RFC](https://github.com/open-telemetry/opentelemetry-collector/blob/main/docs/rfcs/component-universal-telemetry.md) for more details:
20+
- `otelcol.receiver.produced.items`
21+
- `otelcol.processor.consumed.items`
22+
- `otelcol.processor.produced.items`
23+
- `otelcol.connector.consumed.items`
24+
- `otelcol.connector.produced.items`
25+
- `otelcol.exporter.consumed.items`
26+
27+
# Optional: The change log or logs in which this entry should be included.
28+
# e.g. '[user]' or '[user, api]'
29+
# Include 'user' if the change is relevant to end users.
30+
# Include 'api' if there is a change to a library API.
31+
# Default: '[user]'
32+
change_logs: []

docs/rfcs/component-universal-telemetry.md

+1
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,7 @@ Spans, data points, and log records should carry the following attributes:
5454
- `otelcol.component.id`: The component ID
5555
- `otelcol.signal`: `logs`, `metrics` `traces`
5656
- `otelcol.signal.output`: `logs`, `metrics`, `traces`, `profiles`
57+
- `otelcol.pipeline.id.output`: The pipeline ID to which the data is sent
5758

5859
Note: The `otelcol.signal`, `otelcol.signal.output`, or `otelcol.pipeline.id` attributes may be omitted if the corresponding component instances
5960
are unified by the component implementation. For example, the `otlp` receiver is a singleton, so its telemetry is not specific to a signal.

service/documentation.md

+48
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,30 @@
66

77
The following telemetry is emitted by this component.
88

9+
### otelcol_connector.consumed.items
10+
11+
Number of items passed to the connector.
12+
13+
| Unit | Metric Type | Value Type | Monotonic |
14+
| ---- | ----------- | ---------- | --------- |
15+
| {item} | Sum | Int | true |
16+
17+
### otelcol_connector.produced.items
18+
19+
Number of items emitted from the connector.
20+
21+
| Unit | Metric Type | Value Type | Monotonic |
22+
| ---- | ----------- | ---------- | --------- |
23+
| {item} | Sum | Int | true |
24+
25+
### otelcol_exporter.consumed.items
26+
27+
Number of items passed to the exporter.
28+
29+
| Unit | Metric Type | Value Type | Monotonic |
30+
| ---- | ----------- | ---------- | --------- |
31+
| {item} | Sum | Int | true |
32+
933
### otelcol_process_cpu_seconds
1034

1135
Total CPU user and system time in seconds [alpha]
@@ -53,3 +77,27 @@ Uptime of the process [alpha]
5377
| Unit | Metric Type | Value Type | Monotonic |
5478
| ---- | ----------- | ---------- | --------- |
5579
| s | Sum | Double | true |
80+
81+
### otelcol_processor.consumed.items
82+
83+
Number of items passed to the processor.
84+
85+
| Unit | Metric Type | Value Type | Monotonic |
86+
| ---- | ----------- | ---------- | --------- |
87+
| {item} | Sum | Int | true |
88+
89+
### otelcol_processor.produced.items
90+
91+
Number of items emitted from the processor.
92+
93+
| Unit | Metric Type | Value Type | Monotonic |
94+
| ---- | ----------- | ---------- | --------- |
95+
| {item} | Sum | Int | true |
96+
97+
### otelcol_receiver.produced.items
98+
99+
Number of items emitted from the receiver.
100+
101+
| Unit | Metric Type | Value Type | Monotonic |
102+
| ---- | ----------- | ---------- | --------- |
103+
| {item} | Sum | Int | true |

0 commit comments

Comments
 (0)