Skip to content

CLDSRV-1044: Expose metrics for KMS requests - #6371

Open
dvasilas wants to merge 5 commits into
development/9.6from
improvement/CLDSRV-1044-expose-kms-request-metrics
Open

dvasilas wants to merge 5 commits into
development/9.6from
improvement/CLDSRV-1044-expose-kms-request-metrics

Conversation

@dvasilas

Copy link
Copy Markdown
Contributor

Exposes the number, outcome, and duration of requests sent to each kmip and aws_kms KMS.

Relates to: scality/Arsenal#2755

Comment thread package.json Resolved
@codecov

codecov Bot commented Nov 11, 2026 •

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 90.85%. Comparing base (4ca5224) to head (2f4d0f1).
✅ All tests successful. No failed tests found.

Additional details and impacted files

Impacted file tree graph

Files with missing lines Coverage Δ
lib/kms/wrapper.js 91.40% <100.00%> (+0.25%) ⬆️
lib/utilities/monitoringHandler.js 95.17% <100.00%> (+0.17%) ⬆️

... and 1 file with indirect coverage changes

@@                 Coverage Diff                 @@
##           development/9.6    #6371      +/-   ##
===================================================
- Coverage            90.88%   90.85%   -0.03%     
===================================================
  Files                  208      208              
  Lines                39464    39495      +31     
===================================================
+ Hits                 35865    35885      +20     
- Misses                3599     3610      +11     
Flag Coverage Δ
checksums-disabled-tests 46.29% <61.76%> (+0.01%) ⬆️
file-ft-tests 75.63% <61.76%> (-0.04%) ⬇️
file-ft-tests-null-compat 76.11% <61.76%> (-0.01%) ⬇️
kmip-ft-tests 44.17% <100.00%> (+0.10%) ⬆️
mongo-v0-ft-tests 76.67% <61.76%> (-0.01%) ⬇️
mongo-v1-ft-tests 76.68% <61.76%> (-0.04%) ⬇️
multiple-backend 44.50% <61.76%> (+0.01%) ⬆️
s3c-ft-tests-v0 71.51% <61.76%> (-0.01%) ⬇️
s3c-ft-tests-v0-null-compat 71.57% <61.76%> (-0.02%) ⬇️
s3c-ft-tests-v1 71.49% <61.76%> (-0.01%) ⬇️
sur-tests 45.00% <61.76%> (+0.03%) ⬆️
sur-tests-inflights 48.35% <61.76%> (+0.03%) ⬆️
unit 80.97% <100.00%> (+0.01%) ⬆️
utapi-v2-tests 45.23% <61.76%> (+0.01%) ⬆️

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

🚀 New features to boost your workflow:
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@dvasilas
dvasilas force-pushed the improvement/CLDSRV-1043-fail-kms-requests-over-time-limit branch 3 times, most recently from bd20c73 to a4f176a Compare November 23, 2026 07:31
Base automatically changed from improvement/CLDSRV-1043-fail-kms-requests-over-time-limit to development/9.6 November 23, 2026 08:04
@bert-e

bert-e commented Nov 23, 2026

Copy link
Copy Markdown
Contributor

Hello dvasilas,

My role is to assist you with the merge of this
pull request. Please type @bert-e help to get information
on this process, or consult the user documentation.

Available options
name description privileged authored
/after_pull_request Wait for the given pull request id to be merged before continuing with the current one.
/bypass_author_approval Bypass the pull request author's approval ⭐
/bypass_build_status Bypass the build and test status ⭐
/bypass_commit_size Bypass the check on the size of the changeset TBA ⭐
/bypass_incompatible_branch Bypass the check on the source branch prefix ⭐
/bypass_jira_check Bypass the Jira issue check ⭐
/bypass_peer_approval Bypass the pull request peers' approval ⭐
/bypass_leader_approval Bypass the pull request leaders' approval ⭐
/bypass_source_branch_lineage Bypass the cross-branch contamination check ⭐
/approve Instruct Bert-E that the author has approved the pull request. ✍️
/create_pull_requests Allow the creation of integration pull requests.
/create_integration_branches Allow the creation of integration branches.
/no_octopus Prevent Wall-E from doing any octopus merge and use multiple consecutive merge instead
/unanimity Change review acceptance criteria from one reviewer at least to all reviewers
/wait Instruct Bert-E not to run until further notice.
Available commands
name description privileged
/help Print Bert-E's manual in the pull request.
/status Print Bert-E's current status in the pull request.
/clear Remove all comments from Bert-E from the history TBA
/retry Re-start a fresh build TBA
/build Re-start a fresh build TBA
/force_reset Delete integration branches & pull requests, and restart merge process from the beginning.
/reset Try to remove integration branches unless there are commits on them which do not appear on the source branch.

Status report is not available.

@bert-e

bert-e commented Nov 23, 2026

Copy link
Copy Markdown
Contributor

Branches have diverged

This pull request's source branch improvement/CLDSRV-1044-expose-kms-request-metrics has diverged from
development/9.6 by more than 50 commits.

To avoid any integration risks, please re-synchronize them using one of the
following solutions:

  • Merge origin/development/9.6 into improvement/CLDSRV-1044-expose-kms-request-metrics
  • Rebase improvement/CLDSRV-1044-expose-kms-request-metrics onto origin/development/9.6

Note: If you choose to rebase, you may have to ask me to rebuild
integration branches using the reset command.

@dvasilas
dvasilas force-pushed the improvement/CLDSRV-1044-expose-kms-request-metrics branch from eb08acb to b45220b Compare November 23, 2026 09:31
@bert-e

bert-e commented Nov 23, 2026

Copy link
Copy Markdown
Contributor

Waiting for approval

The following approvals are needed before I can proceed with the merge:

  • the author

  • 2 peers

Comment thread tests/utilities/metrics-util.js Fixed
@dvasilas
dvasilas force-pushed the improvement/CLDSRV-1044-expose-kms-request-metrics branch from b45220b to c93bf58 Compare November 23, 2026 10:19
Comment thread tests/utilities/metrics-util.js Resolved
@nicolas2bert
nicolas2bert self-requested a review November 23, 2026 16:14
help: 'Duration of KMS requests in seconds, including any wait before they are sent',
labelNames: ['provider', 'operation', 'outcome'],
// past the default time limit of a KMS request, 5 s, for a KMS set with a longer one
buckets: [0.005, 0.01, 0.025, 0.05, 0.1, 0.25, 0.5, 1, 2.5, 5, 10],

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Trauma response of Micka reviewing my PRs adding metrics, so I need to ask, are you confident about adding this amount of buckets for this metric?

(just want to make sure that's how many you need to avoid cardinality issues).

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

@BourgoisMickael what do you think?

@dvasilas
dvasilas force-pushed the improvement/CLDSRV-1044-expose-kms-request-metrics branch from c93bf58 to 2f4d0f1 Compare November 24, 2026 08:38
Comment thread tests/utilities/metrics-util.js Resolved

This branch has not been deployed

No deployments
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.

4 participants