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

feat/Add metrics per container and per shard #2437

Merged
merged 3 commits into from
Jul 25, 2023

Conversation

carpawell
Copy link
Member

No description provided.

@codecov
Copy link

codecov bot commented Jul 13, 2023

Codecov Report

Merging #2437 (ccf5097) into master (f751d71) will increase coverage by 0.02%.
The diff coverage is 57.14%.

❗ Current head ccf5097 differs from pull request most recent head c97e432. Consider uploading reports for the commit c97e432 to get more accurate results

@@            Coverage Diff             @@
##           master    #2437      +/-   ##
==========================================
+ Coverage   29.41%   29.43%   +0.02%     
==========================================
  Files         399      399              
  Lines       30346    30384      +38     
==========================================
+ Hits         8925     8945      +20     
- Misses      20680    20696      +16     
- Partials      741      743       +2     
Files Changed Coverage Δ
pkg/local_object_storage/engine/metrics.go 0.00% <ø> (ø)
pkg/local_object_storage/engine/shards.go 68.53% <0.00%> (-1.98%) ⬇️
pkg/local_object_storage/shard/shard.go 65.18% <45.45%> (-4.12%) ⬇️
pkg/local_object_storage/metabase/delete.go 74.86% <64.28%> (-0.41%) ⬇️
pkg/local_object_storage/shard/control.go 76.19% <100.00%> (ø)
pkg/local_object_storage/shard/delete.go 75.47% <100.00%> (+3.73%) ⬆️
pkg/local_object_storage/shard/put.go 82.85% <100.00%> (+0.50%) ⬆️

📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more

CHANGELOG.md Outdated Show resolved Hide resolved
pkg/local_object_storage/metabase/delete.go Show resolved Hide resolved
payloadSize = prometheus.NewGaugeVec(prometheus.GaugeOpts{
Namespace: storageNodeNameSpace,
Subsystem: engineSubsystem,
Name: "payload_size",
Copy link
Contributor

Choose a reason for hiding this comment

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

this name seems to generic to me, how about shard_payload_size/volume?

Copy link
Member Author

Choose a reason for hiding this comment

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

it will always have a "shard" label valued with its ID. do you still think it is required (i dont mind just confirm it, please)?

Copy link
Contributor

Choose a reason for hiding this comment

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

if shard will be mentioned, then it's ok

pkg/local_object_storage/shard/delete.go Outdated Show resolved Hide resolved
pkg/local_object_storage/shard/shard.go Show resolved Hide resolved
pkg/local_object_storage/metabase/delete.go Show resolved Hide resolved
@carpawell carpawell force-pushed the feat/add-metrics-for-payload branch from 22fd58b to 8a60360 Compare July 18, 2023 17:29
pkg/local_object_storage/shard/control.go Outdated Show resolved Hide resolved
pkg/local_object_storage/shard/metrics_test.go Outdated Show resolved Hide resolved
No need to store everything in a `map` but at the same time, it makes things
more complex.

Signed-off-by: Pavel Karpy <[email protected]>
@roman-khimov roman-khimov merged commit 8b818db into nspcc-dev:master Jul 25, 2023
7 of 8 checks passed
@carpawell carpawell deleted the feat/add-metrics-for-payload branch July 25, 2023 13:35
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