-
Notifications
You must be signed in to change notification settings - Fork 1
Health Check Output
The output will be in the output/ or folder specified by you. For each run, there will be a new folder created. Folder name: <checkset name>-<timestamp>. If you set ENV=development the output will be directly in the root output folder.
The output consists of:
-
report.mdandreport.html: The final report. In the report you'll see the failed items, and some some raw data collected by each check item. -
<check item>_raw.json: Complete raw data collected by each item. You can use them to integrate with other systems.
-
report.mdis inmarkdownformat. You can use any preview tool to read visualize the content. -
report.htmlis converted from thereport.md, and add more interactive functions for easy reading.
The raw data structure are mainly for developers or integration with other systems.
The raw data collected by each item is organized in a structure that reflects the structure of your target cluster. This is mainly because some check items are better run against the cluster. E.g.: Get replica set config and status. While others may be better against the node. E.g.: Get storage fragmentation ratio.
The raw result collected will be mounted at the node or cluster level depending on which it runs against.
The following structures can show up at many different positions in the result.
-
testResult:array. The failed items.-
host:string. Hostname of the member. Orclusterif it's running against the cluster level (E.g. sharded cluster, or shard, or config). -
severity:string. One ofHIGH,MEDIUMandLOW. -
title:string. Item title. -
description:string. Description of the failed item.
-
-
members:array. Replica set members.-
host:string. Hostname of the member. -
rawResult:object. Raw data collected by the item, against the current host. -
testResult:array. The failed items. Refer to the Test Result Structure.
-
If you run against a replica set, this is the output structure.
-
type:string.RS -
setName:string. The replica set name. -
members:array. Replica set members. Refer to the Member Structure. -
rawResult:object. Raw data collected by the item, against the replica set.
If you run against a sharded cluster, this is the output structure.
-
type:SH -
map:object. Subdocument for all the sharded cluster components.-
config:object. Subdocument for all the config server members.-
setName:string. CSRS Replica set name. -
members:array. CSRS members. Refer to the Member Structure. -
rawResult:object. Raw data collected by the item, against the CSRS. -
testResult:array. The failed items against the CSRS. Refer to the Test Result Structure.
-
-
mongos:object. Subdocument for all the mongos members.-
setName:string. For mongos thesetNamewill always be set tomongos. -
members:array. All mongos members. Refer to the Member Structure. -
rawResult:object. Raw data collected by the item, against the all mongos. -
testResult:array. The failed items against all mongos. Refer to the Test Result Structure.
-
-
<shard name>:object. Each shard will be mapped to an item. The key<shard name>is the shard replica set name.-
setName:string. Shard Replica set name. -
members:array. Shard members. Refer to the Member Structure. -
rawResult:object. Raw data collected by the item, against the shard. -
testResult:array. The failed items against the shard. Refer to the Test Result Structure.
-
-
-
rawResult:object. Raw data collected by the item, against the sharded cluster. -
testResult:array. The failed items. Refer to the shared structures.
Note: if the test was run against map.mongos level, it's essentially the same as running against the cluster. The possible difference is,
- The cluster level
MongoClientis using the connection string provided by the user, which may not include all mongos instances. - The
map.mongoslevelMongoClientis using the connection string that include all known mongos instances, selected fromconfig.mongoscollections.
The check items usually use the map.mongos level so all mongos are included.