-
Type:
Task
-
Resolution: Unresolved
-
Priority:
Major - P3
-
None
-
Affects Version/s: None
-
Component/s: None
-
Query Integration
-
Minor Change
-
None
-
None
-
None
-
None
-
None
-
None
-
None
Overview
Introduce a new opcounters.aggregates metric that tracks top-level aggregate command invocations as their own exclusive counter, replacing the previous behavior where aggregate incremented opcounters.queries. The two counters are now fully mutually exclusive: an aggregate call increments only aggregates, and a find call increments only queries. Neither increments opcounters.commands.
Scope of Work
- src/mongo/db/stats/opcounters.h/.cpp — Add gotAggregate() method and aggregate counter field
- Shard role service entry point and mongos strategy — Call gotAggregate() when processing aggregate commands
Technical Notes
- appears in OTel output, and also in serverStatus.opcounters
- is depended on by
-
SERVER-118979 Tracking: query work for opcounters as OTel Metrics
-
- In Progress
-
-
COMPASS-10610 Investigate changes in SERVER-123987: Add opcounters.aggregate counter
-
- Needs Triage
-