Excellencedev
77e2fe72f8
Implement Per collection metrics for Promethus ( #8214 )
...
* Implement Per-Collection Prometheus Metrics
* Update config/config.yaml
Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com>
* Update tests/per_collection_metrics_test.sh
Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com>
* Update tests/per_collection_metrics_test.sh
Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com>
* fix ci
* comment
* Update tests/per_collection_metrics_test.sh
Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com>
* adress revew
* fix: linter
* refactor: cardinality limit, anonymize fix, cleanup
- Add max_per_collection_metrics config (default 256) to bound
per-collection label cardinality
- Fix anonymize: strip per_collection_responses entirely instead of
leaking hashed collection names
- Move CollectionName into requests_telemetry, remove
telemetry_context.rs
- Add unit tests for cardinality limits
- Add integration test assertions for default mode
- Regenerate OpenAPI spec
- Document why internal gRPC doesn't attach CollectionName
* avoid cloning
* fix: address pr reviews
* fix: linter
* fix: linter
* feat: enforce {name} in actix api
* chore: remove empty line
* feat: add actix pre-commit hook
* feat: potential enforce tonic collection name
* feat: use proc_macro instead
* feat: use collection_name instead of name
* feat: add tonic telemetry tests
* fix: linter
* fix: linter
* chore: remove unneccessary clone
* fix: use collection_name everywhere
* fix: python tests and openapi
* chore: simplify collection_name tests
* actix collection_name enforcign: use relative path in test + avoid grep
* fix: remove macro
* chore: add some comment to telemetry_wrapper
* fix: clippy
---------
Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com>
Co-authored-by: Daniel Boros <dancixx@gmail.com>
Co-authored-by: generall <andrey@vasnetsov.com>
2026-03-26 18:39:05 +01:00
Ivan Pleshkov
78207079dd
Update queue status in metrics and telemetry ( #8060 )
...
* update queue status in metrics and telemetry
* fix python tests
* update openapi
2026-02-10 00:01:27 +01:00
Jojii
3a19714f49
Make indexed-only-excluded-points metric default to 0 ( #7649 )
...
* Make indexed_only_excluded in metrics default to 0
* Fix tests
2025-12-03 10:23:55 +01:00
Arnaud Gourlay
9bfeed0292
Fix Openapi schema for DELETE issues ( #7634 )
2025-12-03 10:20:34 +01:00
Jojii
0f191bfcf6
Metrics for snapshots ( #7497 )
...
* Add atomic counter for running snapshots
* Refactor collection telemetry + export prometheus metric
* Handle collection in ToC + current recovery measurements
* Fix openapi tests
* Fix tests
* Add snapshot metrics for streaming and partial snapshots.
* Fix typo in metrics name
* Adjust metrics names
---------
Co-authored-by: timvisee <tim@visee.me>
2025-11-14 12:31:06 +01:00
Jojii
df2b1c6232
Metrics vectors by name per collection ( #7441 )
...
* Add vector count per vector-name to metrics API
* Add to metrics API
* Improve TinyMap::get_or_insert_default and add tests
* Minor improvements
* Update openapi
* Review remarks
* Remove `collection_vectors` since it can be calculated manually
2025-11-14 12:30:15 +01:00
Roman Titov
2aafd0174d
Add partial snapshot create requests count and recovery timestamp to telemetry ( #6545 )
...
Co-authored-by: generall <andrey@vasnetsov.com>
2025-05-22 23:27:14 +02:00
Kumar Shivendu
83af9cf3ba
Improve telemetry logic and test ( #6399 )
...
* Improve telemetry logic and test
* Parametrize telemetry test
* Consistency hash peeer ID across telemetry
* clean test
* Use Option in segments telemetry
* updat openapi spec
* Avoid test failure on change in order of params
2025-04-21 00:12:26 +02:00
Andrey Vasnetsov
bbea80e7d4
Telemetry improvements ( #6390 )
...
* allow shard states in anonymize telemetry (with hashed peer ids)
* introduce level3 and level4 for telemetry, where level4 = everything, incl. segments info
* upd openapi
* fix tests
* expose vector count & size stats on shard level to avoid reading of segments
* fix spelling
* upd schema
* fix tests
* Use unwrap_or_default
* [#6390 ] skip serializing shard details in Level2 (#6398 )
* skip serializing shard details in Level2
* upd openapi
---------
Co-authored-by: generall <andrey@vasnetsov.com>
---------
Co-authored-by: Tim Visée <tim+github@visee.me>
Co-authored-by: Luis Cossío <luis.cossio@qdrant.com>
2025-04-21 00:10:28 +02:00
Predrag Knezevic
96a5a2bce8
Test collections unique per openapi test module ( #5384 )
...
Collection name under test is equal to the test module name, without `.py` suffix.
* Helps by debugging/tracing failed tests and find relevant logs lines in qdrant log files
* Opens up a possibility to run tests in parallel, given that there are no data sharing
between test modules
Change details:
* defined module scoped `collection_name` fixture in `conftest.py`
* removed `collection_name` module variable
* each test signature modified to declare the dependency to `collection_name` fixture
* `@pytest.mark.parametrize` migrated to `@pytest-cases.parametrize` in cases when
`collection_name` was used as the value
2024-11-08 11:27:05 +01:00
xzfc
f225e5865a
chore: move tests/openapi/openapi_integration/* → tests/openapi/* ( #4820 )
2024-08-09 18:17:44 +02:00