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

Update kubeletstats metrics according to semantic conventions #475

Merged

Conversation

dmitryax
Copy link
Member

Description:
Update kubeletstats receiver metrics according to open-telemetry/oteps#119 :

  • Remove "k8s." from container metrics
  • Change "/" metric delimiter to "."
  • Change ...network -> ...network.io
  • Avoid short forms in metrics: "mem" -> "memory", "fs" -> "filesystem"
  • Use "cpu.usage" in [0,1] scale instead of "cpu.utilization" in percents
  • Use "cpu.time" in seconds instead of "cpu/cumulative" in nanoseconds

Update kubeletstats receiver metrics according to open-telemetry/oteps#119 :
- Remove "k8s." from container metrics
- Change "/" metric delimiter to "."
- Change ...network -> ...network.io
- Avoid short forms in metrics: "mem" -> "memory", "fs" -> "filesystem"
- Use "cpu.usage" in [0,1] scale instead of "cpu.utilization" in percents
- Use "cpu.time" in seconds instead of "cpu/cumulative" in nanoseconds

Also introduce additional metrics:  "network.errors" and "filesystem.usage".
@dmitryax dmitryax requested a review from a team as a code owner July 20, 2020 17:27
@project-bot project-bot bot added this to In progress in Collector Jul 20, 2020
@dmitryax dmitryax changed the title Update kubeletstats metric according to semantic conventions Update kubeletstats metrics according to semantic conventions Jul 20, 2020
@codecov
Copy link

codecov bot commented Jul 20, 2020

Codecov Report

Merging #475 into master will increase coverage by 0.02%.
The diff coverage is 95.23%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master     #475      +/-   ##
==========================================
+ Coverage   85.37%   85.40%   +0.02%     
==========================================
  Files         180      180              
  Lines        9594     9624      +30     
==========================================
+ Hits         8191     8219      +28     
- Misses       1086     1087       +1     
- Partials      317      318       +1     
Flag Coverage Δ
#integration 71.09% <ø> (ø)
#unit 85.20% <95.23%> (+0.02%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

Impacted Files Coverage Δ
...ceiver/kubeletstatsreceiver/kubelet/accumulator.go 100.00% <ø> (ø)
receiver/kubeletstatsreceiver/kubelet/pb.go 90.62% <87.50%> (-1.05%) ⬇️
receiver/kubeletstatsreceiver/kubelet/cpu.go 85.71% <100.00%> (+1.09%) ⬆️
receiver/kubeletstatsreceiver/kubelet/fs.go 100.00% <100.00%> (ø)
receiver/kubeletstatsreceiver/kubelet/mem.go 100.00% <100.00%> (ø)
receiver/kubeletstatsreceiver/kubelet/network.go 100.00% <100.00%> (ø)

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 4deae62...dfaefaa. Read the comment docs.

Collector automation moved this from In progress to Reviewer approved Jul 20, 2020
@bogdandrutu bogdandrutu merged commit ba9767e into open-telemetry:master Jul 20, 2020
Collector automation moved this from Reviewer approved to Done Jul 20, 2020
ljmsc referenced this pull request in ljmsc/opentelemetry-collector-contrib Feb 21, 2022
codeboten pushed a commit that referenced this pull request Nov 23, 2022
codeboten pushed a commit that referenced this pull request Nov 23, 2022
* Allow instrumentation of newer FastAPI versions

Since the introduction of the `_instruments` runtime checks in #475, the
FastAPI instrumentation has stopped working for versions >= `0.59.0`.
However the current test suite passes even for the latest released
version at the moment (`0.67.0`).

It seems this isn't related to a limitation in the instrumentation code,
but actually because of it being created when `0.58` was the latest version:
open-telemetry/opentelemetry-python@7bec76a.

* Add changelog entry

Co-authored-by: Owais Lone <owais@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
No open projects
Collector
  
Done
Development

Successfully merging this pull request may close these issues.

None yet

2 participants