Skip to content

Conversation

@james-bebbington
Copy link
Member

@james-bebbington james-bebbington commented Jul 23, 2020

Adds disk.pending_operations metric.

On Windows this is the "Current disk queue length", obtained via a perf counter whereas on Linux this is the "I/Os currently in progress" value returned by procfs/disktats.

@james-bebbington
Copy link
Member Author

james-bebbington commented Jul 23, 2020

Note Windows also has an "Avg. Disk Queue Length" counter but that is actually just an estimate based on other stats as described here: https://www.sciencedirect.com/topics/computer-science/disk-queue-length

Given the slightly strange way that is calculated, and to be consistent with the point-in-time value returned by Linux, I've opted to use "Current Disk Queue Length" over "Avg. Disk Queue Length".

@codecov
Copy link

codecov bot commented Jul 24, 2020

Codecov Report

Merging #1428 into master will increase coverage by 0.02%.
The diff coverage is 100.00%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master    #1428      +/-   ##
==========================================
+ Coverage   90.30%   90.33%   +0.02%     
==========================================
  Files         232      232              
  Lines       16396    16418      +22     
==========================================
+ Hits        14807    14831      +24     
+ Misses       1134     1133       -1     
+ Partials      455      454       -1     
Impacted Files Coverage Δ
...iver/internal/scraper/diskscraper/disk_metadata.go 100.00% <100.00%> (ø)
...nternal/scraper/diskscraper/disk_scraper_others.go 100.00% <100.00%> (ø)
translator/internaldata/resource_to_oc.go 86.04% <0.00%> (+2.32%) ⬆️

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 d4053cc...2839784. Read the comment docs.

@jrcamp jrcamp self-assigned this Jul 24, 2020
Comment on lines 49 to +50
"system.disk.ops",
"system.disk.pending_operations",
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should we unabbreviate ops in other metrics?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes the OTEP recently changed these to long names. I will update names again in a follow up PR

@bogdandrutu bogdandrutu merged commit 403aa76 into open-telemetry:master Jul 27, 2020
MovieStoreGuy pushed a commit to atlassian-forks/opentelemetry-collector that referenced this pull request Nov 11, 2021
…pen-telemetry#1428)

* adding codeql workfklow

* removing PR and commit triggers

* updating changelog

* removing push trigger

Co-authored-by: Azfaar Qureshi <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants