[web] collect mongo stats on native client (#32909)

* [metrics] mongo: fail when command monitoring is not available

* [metrics] mongo: add optional client label to pool metrics

* [web] collect mongo stats on native client

* [metrics] mongo: record namespace of find commands

* [metrics] mongo: add counter for all the commands with collection label

* [web] add missing mock

GitOrigin-RevId: 9f378d8aa8d7167f56cf512681d63ef115c6dd98
This commit is contained in:
Jakob Ackermann
2026-04-20 08:05:44 +00:00
committed by Copybot
parent 26820bc327
commit ad79c85cea
5 changed files with 113 additions and 55 deletions
+1
View File
@@ -59,6 +59,7 @@ vi.mock('@overleaf/metrics', () => {
}
},
prom: { Counter: sinon.stub(), Histogram: sinon.stub() },
mongodb: { monitor: sinon.stub() },
},
}
})