Skip to content

Add Active Indices Metrics - [MOD-7952]#5160

Merged
GuyAv46 merged 6 commits intomasterfrom
guyav-metrics_active_indices
Nov 6, 2024
Merged

Add Active Indices Metrics - [MOD-7952]#5160
GuyAv46 merged 6 commits intomasterfrom
guyav-metrics_active_indices

Conversation

@GuyAv46
Copy link
Collaborator

@GuyAv46 GuyAv46 commented Nov 5, 2024

Describe the changes in the pull request

Adding atomic counters to IndexSpec for active index usage, and utilizing them for new global gauges under the index section of the info command:

  1. number_of_active_indexes
  2. number_of_active_indexes_running_queries
  3. number_of_active_indexes_indexing
  4. total_active_writes

In addition, we added a new field under the query section:

  1. total_active_queries

Mark if applicable

  • This PR introduces API changes
  • This PR introduces serialization changes

@codecov
Copy link

codecov bot commented Nov 5, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 86.43%. Comparing base (388f81e) to head (faf0b7e).
Report is 3 commits behind head on master.

Additional details and impacted files
@@            Coverage Diff             @@
##           master    #5160      +/-   ##
==========================================
+ Coverage   86.37%   86.43%   +0.06%     
==========================================
  Files         190      192       +2     
  Lines       34701    34787      +86     
==========================================
+ Hits        29972    30069      +97     
+ Misses       4729     4718      -11     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@GuyAv46 GuyAv46 added this pull request to the merge queue Nov 6, 2024
Merged via the queue into master with commit 41b53c5 Nov 6, 2024
@GuyAv46 GuyAv46 deleted the guyav-metrics_active_indices branch November 6, 2024 16:17
@redisearch-backport-pull-request
Copy link
Contributor

Successfully created backport PR for 2.10:

redisearch-backport-pull-request bot pushed a commit that referenced this pull request Nov 6, 2024
* old IndexStats cleanup

* count read and write operations

* added count of active indices to the info command

* add total active writes and total active queries gauges

* rename variables

(cherry picked from commit 41b53c5)
@redisearch-backport-pull-request
Copy link
Contributor

Successfully created backport PR for 8.0:

redisearch-backport-pull-request bot pushed a commit that referenced this pull request Nov 6, 2024
* old IndexStats cleanup

* count read and write operations

* added count of active indices to the info command

* add total active writes and total active queries gauges

* rename variables

(cherry picked from commit 41b53c5)
github-merge-queue bot pushed a commit that referenced this pull request Nov 6, 2024
Add Active Indices Metrics - [MOD-7952] (#5160)

* old IndexStats cleanup

* count read and write operations

* added count of active indices to the info command

* add total active writes and total active queries gauges

* rename variables

(cherry picked from commit 41b53c5)

Co-authored-by: GuyAv46 <[email protected]>
github-merge-queue bot pushed a commit that referenced this pull request Nov 6, 2024
Add Active Indices Metrics - [MOD-7952] (#5160)

* old IndexStats cleanup

* count read and write operations

* added count of active indices to the info command

* add total active writes and total active queries gauges

* rename variables

(cherry picked from commit 41b53c5)

Co-authored-by: GuyAv46 <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants