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

Feature/collection metric #3899

Open
wants to merge 9 commits into
base: dev
Choose a base branch
from

Conversation

Shylock-Hg
Copy link
Contributor

@Shylock-Hg Shylock-Hg commented Mar 23, 2024

Sub job of #3322

Add collection metrics for rest API.

e.g.

shylock@localhost:~> curl http://localhost:6333/metrics
# HELP app_info information about qdrant server
# TYPE app_info counter
app_info{name="qdrant",version="1.9.0-dev"} 1
# HELP app_status_recovery_mode features enabled in qdrant server
# TYPE app_status_recovery_mode counter
app_status_recovery_mode 0
# HELP collections_total number of collections
# TYPE collections_total gauge
collections_total 1
# HELP collections_vector_total total number of vectors in all collections
# TYPE collections_vector_total gauge
collections_vector_total 0
# HELP cluster_enabled is cluster support enabled
# TYPE cluster_enabled counter
cluster_enabled 0
# HELP rest_responses_total total number of responses
# TYPE rest_responses_total counter
rest_responses_total{method="GET",endpoint="/collections/{name}/points",status="404"} 1
# HELP rest_responses_fail_total total number of failed responses
# TYPE rest_responses_fail_total counter
rest_responses_fail_total{method="GET",endpoint="/collections/{name}/points",status="404"} 0
# HELP rest_responses_total total number of responses
# TYPE rest_responses_total counter
rest_responses_total{collection="test_collection",method="GET",endpoint="/collections/{name}/points",status="404"} 1
# HELP rest_responses_fail_total total number of failed responses
# TYPE rest_responses_fail_total counter
rest_responses_fail_total{collection="test_collection",method="GET",endpoint="/collections/{name}/points",status="404"} 0

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?

Changes to Core Features:

  • Have you added an explanation of what your changes do and why you'd like us to include them?
  • Have you written new tests for your core changes, as applicable?
  • Have you successfully ran tests with your changes locally?

@Shylock-Hg Shylock-Hg marked this pull request as draft March 23, 2024 08:49
@Shylock-Hg Shylock-Hg marked this pull request as ready for review March 23, 2024 09:52
@Shylock-Hg
Copy link
Contributor Author

@generall Could take a look ?

@Shylock-Hg Shylock-Hg requested a review from timvisee April 1, 2024 08:02
@timvisee timvisee requested a review from generall April 3, 2024 09:34
@Shylock-Hg
Copy link
Contributor Author

@generall Hello?

@Shylock-Hg
Copy link
Contributor Author

@generall Is it still available?

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.

None yet

2 participants