Skip to content

Commit

Permalink
split system.network.connections into TCP and UDP metrics (open-telem…
Browse files Browse the repository at this point in the history
…etry#2675)

Co-authored-by: Armin Ruech <armin.ruech@dynatrace.com>
  • Loading branch information
Alex Boten and arminru authored Aug 5, 2022
1 parent 0a31a17 commit 5d37795
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 1 deletion.
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,8 @@ release.
([#2663](https://github.com/open-telemetry/opentelemetry-specification/pull/2663))
- Add `process.parent_pid` attribute for use in reporting parent process id (PID)
([#2691](https://github.com/open-telemetry/opentelemetry-specification/pull/2691)).
- Separate tcp/udp protocols for metric `system.network.connections`.
([#2675](https://github.com/open-telemetry/opentelemetry-specification/pull/2675))

### Compatibility

Expand Down
7 changes: 7 additions & 0 deletions schemas/1.13.0
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,13 @@ versions:
metrics_from_attributes:
process.network.io.receive: receive
process.network.io.transmit: transmit
# https://github.com/open-telemetry/opentelemetry-specification/pull/2675
- split:
apply_to_metric: system.network.connections
by_attribute: protocol
metrics_from_attributes:
system.network.tcp.connections: tcp
system.network.udp.connections: udp

1.12.0:
spans:
Expand Down
5 changes: 4 additions & 1 deletion specification/metrics/semantic_conventions/system-metrics.md
Original file line number Diff line number Diff line change
Expand Up @@ -146,9 +146,12 @@ perf counter (similar for Writes)
| | | | | | direction | transmit, receive |
| system<!--notlink-->.network.io.transmit | Bytes sent | By | Counter | Int64 | device | (identifier) |
| system<!--notlink-->.network.io.receive | Bytes received | By | Counter | Int64 | device | (identifier) |
| system.network.connections | | {connections} | UpDownCounter | Int64 | device | (identifier) |
| system.network.connections (deprecated) | | {connections} | UpDownCounter | Int64 | device | (identifier) |
| | | | | | protocol | tcp, udp, [etc.](https://en.wikipedia.org/wiki/Transport_layer#Protocols) |
| | | | | | state | If specified, SHOULD be one of: close, close_wait, closing, delete, established, fin_wait_1, fin_wait_2, last_ack, listen, syn_recv, syn_sent, time_wait. A stateless protocol MUST NOT set this attribute. |
| system.network.tcp.connections | Count of TCP connections | {connections} | UpDownCounter | Int64 | device | (identifier) |
| | | | | | state | SHOULD be one of: close, close_wait, closing, delete, established, fin_wait_1, fin_wait_2, last_ack, listen, syn_recv, syn_sent, time_wait. A stateless protocol MUST NOT set this attribute. |
| system.network.udp.connections | Count of UDP connections | {connections} | UpDownCounter | Int64 | device | (identifier) |

<sup>1</sup> Measured as:

Expand Down

0 comments on commit 5d37795

Please sign in to comment.