Skip to content

Various metrics tweaks#7480

Merged
timvisee merged 8 commits intodevfrom
metrics-tweaks
Oct 31, 2025
Merged

Various metrics tweaks#7480
timvisee merged 8 commits intodevfrom
metrics-tweaks

Conversation

@timvisee
Copy link
Member

@timvisee timvisee commented Oct 30, 2025

Various /metrics tweaks

Changes include:

  • fix missing _ separator in gRPC metrics
  • change page fault gauges to counters (these are monotonic)
  • remove _total suffix from vector count, make consistent with point count
  • rename procfs metrics to 'process', e.g:
    • qdrant_procfs_mmap_count -> qdrant_process_mmap_count
    • qdrant_procfs_major_page_faults -> qdrant_process_major_page_faults_total
  • merge soft/hard limit for file descriptors into one metric
  • changed other metrics to better follow convention

Please see each individual commit for a better view in all exact changes.

A snippet of some metrics:

# HELP qdrant_active_replicas_min minimum number of active replicas across all shards
# TYPE qdrant_active_replicas_min gauge
qdrant_active_replicas_min 1
# HELP qdrant_active_replicas_max maximum number of active replicas across all shards
# TYPE qdrant_active_replicas_max gauge
qdrant_active_replicas_max 1
# HELP qdrant_optimizer_running_processes number of currently running optimization processes
# TYPE qdrant_optimizer_running_processes gauge
qdrant_optimizer_running_processes 0
# HELP qdrant_collection_points approximate amount of points per collection
# TYPE qdrant_collection_points gauge
qdrant_collection_points{id="benchmark"} 100000
qdrant_collection_points{id="test"} 123
# HELP qdrant_collection_vectors amount of vectors grouped by vector name
# TYPE qdrant_collection_vectors gauge
qdrant_collection_vectors{collection="benchmark",vector=""} 100000
qdrant_collection_vectors{collection="test",vector=""} 123
# HELP qdrant_dead_replicas total amount of shard replicas in non-active state
# TYPE qdrant_dead_replicas gauge
qdrant_dead_replicas 0
# HELP qdrant_process_open_mmaps count of open mmaps
# TYPE qdrant_process_open_mmaps gauge
qdrant_process_open_mmaps 831
# HELP qdrant_process_open_fds count of currently open file descriptors
# TYPE qdrant_process_open_fds gauge
qdrant_process_open_fds 122
# HELP qdrant_process_max_fds limit for open file descriptors
# TYPE qdrant_process_max_fds gauge
qdrant_process_max_fds 1024
# HELP qdrant_process_minor_page_faults_total count of minor page faults which didn't cause a disk access
# TYPE qdrant_process_minor_page_faults_total counter
qdrant_process_minor_page_faults_total 0
# HELP qdrant_process_major_page_faults_total count of disk accesses caused by a mmap page fault
# TYPE qdrant_process_major_page_faults_total counter
qdrant_process_major_page_faults_total 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?

@timvisee timvisee added the release:1.16.0 Pull requests that should be merged for the Qdrant 1.16.0 release. label Oct 30, 2025
@timvisee timvisee marked this pull request as ready for review October 30, 2025 16:13
coderabbitai[bot]

This comment was marked as resolved.

@qdrant qdrant deleted a comment from coderabbitai bot Oct 30, 2025
A underscore was missing if no global prefix was set
@qdrant qdrant deleted a comment from coderabbitai bot Oct 30, 2025
@qdrant qdrant deleted a comment from coderabbitai bot Oct 30, 2025
@timvisee timvisee merged commit cf9b830 into dev Oct 31, 2025
15 checks passed
@timvisee timvisee deleted the metrics-tweaks branch October 31, 2025 09:06
timvisee added a commit that referenced this pull request Nov 14, 2025
* Change page fault metrics from gauges to counters

* Change collection_vectors_total to collection_vectors

* Rename metric for page faults in joined child processes

* Rename some procfs metrics

* Show single limit for number of open files

* For number of file descriptors and mmaps follow convential names

* Rename dead_shards_total to dead_replicas

* Fix metric prefix for gRPC entries, add missing underscore

A underscore was missing if no global prefix was set
@timvisee timvisee mentioned this pull request Nov 14, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

release:1.16.0 Pull requests that should be merged for the Qdrant 1.16.0 release.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants