[2.10] [MOD-12070] Extend indexing metrics (#7669)#7766
Merged
Conversation
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
backport #7669 to 2.10
Note
Adds global counters for total documents indexed (overall and per field type) and surfaces them in INFO MODULES, updating indexing paths to maintain these stats with tests.
FieldsGlobalStats_UpdateFieldDocsIndexedand new counters inFieldsGlobalStatsfor per-field-type document indexing totals.src/document.c(fulltextPreprocessor,IndexerBulkAdd).total_num_docs_in_indexesacross all specs inIndexesInfo_TotalInfoand expose in index stats.total_indexing_ops_{text|tag|numeric|geo|geoshape|vector}_fieldsandtotal_num_docs_in_indexesinsrc/info/info_redis.c.global_stats.h,indexes_info.h) and includes to support new metrics.total_num_docs_in_indexesand per-fieldtotal_indexing_ops_*counters, including multi-value JSON behavior.Written by Cursor Bugbot for commit 2204869. This will update automatically on new commits. Configure here.