Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add k8s.{pod,node}.network.{io,errors} metrics #1427

Merged
merged 4 commits into from
Nov 21, 2024

Conversation

ChrsMark
Copy link
Member

@ChrsMark ChrsMark commented Sep 24, 2024

Part of #1032

Fixes #1487

Changes

This PR adds the following metrics:

  • k8s.pod.network.io
  • k8s.pod.network.errors
  • k8s.node.network.io
  • k8s.node.network.errors

The above metrics are already used in the Collector in the kubeletstats receiver and the naming is aligned with the System metrics.

These metrics come with the following attributes network.io.direction and system.device which are already part of SemConv registry and are used in the System metrics. The attributes in the Collector will need to be adjusted to follow the recent SemConv rules.

Merge requirement checklist

@ChrsMark ChrsMark requested review from a team as code owners September 24, 2024 07:50
@ChrsMark ChrsMark force-pushed the add_k8s_network_metrics branch 2 times, most recently from 5d093f4 to a7fe139 Compare September 24, 2024 08:11
model/k8s/metrics.yaml Outdated Show resolved Hide resolved
docs/system/k8s-metrics.md Outdated Show resolved Hide resolved
model/k8s/metrics.yaml Outdated Show resolved Hide resolved
model/k8s/metrics.yaml Show resolved Hide resolved
model/k8s/metrics.yaml Show resolved Hide resolved
model/k8s/metrics.yaml Show resolved Hide resolved
model/k8s/metrics.yaml Show resolved Hide resolved
model/k8s/metrics.yaml Outdated Show resolved Hide resolved
@ChrsMark ChrsMark requested review from a team and tigrannajaryan as code owners October 18, 2024 06:58
@ChrsMark ChrsMark force-pushed the add_k8s_network_metrics branch from ddd42d2 to c7f3653 Compare October 18, 2024 06:59
@ChrsMark ChrsMark requested review from a team and removed request for a team and tigrannajaryan October 18, 2024 06:59
@ChrsMark ChrsMark force-pushed the add_k8s_network_metrics branch from c7f3653 to 804d91a Compare October 31, 2024 08:23
@ChrsMark
Copy link
Member Author

ChrsMark commented Oct 31, 2024

@lmolkova @TylerHelmuth thank's for reviewing this. We are now using the new network.interface.name attribute and I think we can document these changes in sth similar to #1198 (I can take care of it: #1537). Do you think we can move forward this PR now?

Copy link

This PR was marked stale due to lack of activity. It will be closed in 7 days.

@github-actions github-actions bot added the Stale label Nov 17, 2024
@ChrsMark
Copy link
Member Author

@TylerHelmuth @lmolkova anything blocking this one?

@github-actions github-actions bot removed the Stale label Nov 19, 2024
@ChrsMark
Copy link
Member Author

/cc @open-telemetry/specs-semconv-maintainers @lmolkova

@lmolkova lmolkova enabled auto-merge (squash) November 21, 2024 04:14
@lmolkova
Copy link
Contributor

@ChrsMark please regenerate markdown files (there was a small change on main) and it should be ready to go.

@ChrsMark ChrsMark force-pushed the add_k8s_network_metrics branch from eaa88aa to 618fc90 Compare November 21, 2024 09:16
@lmolkova lmolkova merged commit 5517079 into open-telemetry:main Nov 21, 2024
14 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: Done
Archived in project
Development

Successfully merging this pull request may close these issues.

[k8s] Define semantic conventions for k8s network metrics
5 participants