-
Type: Task
-
Resolution: Fixed
-
Priority: Major - P3
-
Affects Version/s: None
-
Labels:
A new field (validator) was added for serverStatus.metrics.commands for only the collMod and create commands. The new field has this syntax:
{
create: {
failed: Long("0"),
validator :
total: Long("23")
},
Description of Linked Ticket
Add additional counters in serverStatus().metrics.commands for collMod and create.
Something like:
{ create: { failed: Long("0"), validator: { total: Long("0"), failed: Long("0"), jsonSchema: Long("0")}, total: Long("23") }, collMod: { failed: Long("0"), validator: { total: Long("0"), failed: Long("0"), jsonSchema: Long("0")}, total: Long("0") } ... }
Increment count for 'validator.total' if non-empty 'validator' object was passed as option to the command. Increment 'validator.jsonSchema' if $jsonSchema was used anywhere within 'validator' object.
- backported by
-
DOCS-15919 [BACKPORT] [v4.4] Track usage of JSON Schema for validation
- Closed
- documents
-
SERVER-71392 Track usage of JSON Schema for validation
- Closed
- is depended on by
-
DOCS-15909 [SERVER][BACKPORT] [v5.0] Track usage of JSON Schema for validation
- Closed
-
DOCS-15910 [SERVER][BACKPORT] [v6.0] Track usage of JSON Schema for validation
- Closed