mirror of
https://github.com/yu-i-i/overleaf-cep.git
synced 2026-11-15 06:33:55 +01:00
[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:
@@ -59,6 +59,7 @@ vi.mock('@overleaf/metrics', () => {
|
||||
}
|
||||
},
|
||||
prom: { Counter: sinon.stub(), Histogram: sinon.stub() },
|
||||
mongodb: { monitor: sinon.stub() },
|
||||
},
|
||||
}
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user