Skip to content

Add scroll endpoints to metrics whitelist - #4812

Merged
agourlay merged 2 commits into
qdrant:devfrom
qdegraaf:feat/scrollmetrics
Aug 5, 2024
Merged

agourlay merged 2 commits into
qdrant:devfrom
qdegraaf:feat/scrollmetrics

Conversation

@qdegraaf

@qdegraaf qdegraaf commented Aug 2, 2024

Copy link
Copy Markdown
Contributor

Summary

Adds scroll endpoint to GRPC_ENDPOINT_WHITELIST and REST_ENDPOINT_WHITELIST.

This is my first PR on qdrant, let me know if I am missing any steps.

To check whether additional configuration or edits were required for adding metrics endpoints I had a look at some previous PRs that expanded the whitelists ( such as: #4497 ) but found no specific implementation, so I'm presuming expansion is as straightforward as this PR. Will post further thoughts in related issue.

Relates to: #4805

All Submissions:

  • Contributions should target the dev branch. Did you create your branch from dev?
  • Have you followed the guidelines in our Contributing document?
  • Have you checked to ensure there aren't other open Pull Requests for the same update/change?

New Feature Submissions:

  1. Does your submission pass tests?
  2. Have you formatted your code locally using cargo +nightly fmt --all command prior to submission?
  3. Have you checked your code using cargo clippy --all --all-features command?

@generall

generall commented Aug 2, 2024

Copy link
Copy Markdown
Member

hey @qdegraaf

Please rebase to dev branch

@qdegraaf
qdegraaf changed the base branch from master to dev August 2, 2024 15:37
@agourlay
agourlay merged commit 24922dd into qdrant:dev Aug 5, 2024
generall pushed a commit that referenced this pull request Aug 9, 2024
* Add `scroll` endopint to metrics whitelist

* Tweak docs
avanish-garg added a commit to avanish-garg/qdrant that referenced this pull request Oct 6, 2026
DeleteVectors, CreateFieldIndex, DeleteFieldIndex, SearchMatrixPairs,
and SearchMatrixOffsets each already have a whitelisted REST endpoint
in REST_ENDPOINT_WHITELIST, but were missing from the gRPC whitelist,
so grpc_responses_total/latency metrics were silently absent for these
operations while rest_responses_total had them. Same drift pattern and
fix shape as qdrant#4812 (scroll endpoints).
timvisee added a commit that referenced this pull request Nov 26, 2026
* [AI] fix: sync GRPC_ENDPOINT_WHITELIST with its REST metrics sibling

DeleteVectors, CreateFieldIndex, DeleteFieldIndex, SearchMatrixPairs,
and SearchMatrixOffsets each already have a whitelisted REST endpoint
in REST_ENDPOINT_WHITELIST, but were missing from the gRPC whitelist,
so grpc_responses_total/latency metrics were silently absent for these
operations while rest_responses_total had them. Same drift pattern and
fix shape as #4812 (scroll endpoints).

* fix: whitelist REST delete-field-index endpoint in metrics

DELETE /collections/{collection_name}/index/{field_name} is recorded under
its own route pattern, which was missing from REST_ENDPOINT_WHITELIST, so
rest_responses_total never reported field index deletions. The existing
/index entry only matches the PUT create route.

Extend the sibling test to check both whitelists for each gRPC/REST pair.

Co-Authored-By: Claude Opus 5.5 <[email protected]>

* test: remove obsolete whitelist sibling test

The test only re-asserted a hardcoded list of entries; sortedness is
already covered by test_endpoint_whitelists_sorted.

Co-Authored-By: Claude Opus 5.5 <[email protected]>

---------

Co-authored-by: Tim Visee <[email protected]>
Co-authored-by: Claude Opus 5.5 <[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