Skip to content

[2.10] [MOD-12070] Extend indexing metrics (#7669)#7766

Merged
lerman25 merged 3 commits into2.10from
backport-7669-to-2.10
Dec 15, 2025
Merged

[2.10] [MOD-12070] Extend indexing metrics (#7669)#7766
lerman25 merged 3 commits into2.10from
backport-7669-to-2.10

Conversation

@lerman25
Copy link
Copy Markdown
Collaborator

@lerman25 lerman25 commented Dec 14, 2025

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.

  • Metrics/Global Stats:
    • Add FieldsGlobalStats_UpdateFieldDocsIndexed and new counters in FieldsGlobalStats for per-field-type document indexing totals.
    • Increment counters on successful indexing in src/document.c (fulltextPreprocessor, IndexerBulkAdd).
  • Indexes Aggregation:
    • Aggregate total_num_docs_in_indexes across all specs in IndexesInfo_TotalInfo and expose in index stats.
  • INFO MODULES Output:
    • Expose total_indexing_ops_{text|tag|numeric|geo|geoshape|vector}_fields and total_num_docs_in_indexes in src/info/info_redis.c.
  • Headers/Plumbing:
    • Update headers (global_stats.h, indexes_info.h) and includes to support new metrics.
  • Tests:
    • Add SA tests validating total_num_docs_in_indexes and per-field total_indexing_ops_* counters, including multi-value JSON behavior.

Written by Cursor Bugbot for commit 2204869. This will update automatically on new commits. Configure here.

Loading
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