Measures reported by MongoLogTest
The MongoDB logs are a vast source of information related to errors and warnings that a MongoDB server encounters. Administrators use these log files not only to spot problem conditions, but also to troubleshoot them. By periodically scanning the MongoDB error log for errors/warnings, the MongoLogTest test promptly notifies administrators as soon as a new error, warning, or fatal error is logged in the file. Detailed diagnostics of the test clearly indicate what error it is and when it occurred, so as to aid troubleshooting efforts.
As messages keep getting logged in the log files, these log files grow large in size. If log file growth is left unchecked, it can consume all available space in the database. Administrators can effectively tracklog file growth and initiate measures to control it using the MongoLogTest test. The test reports the current size of the log files and their growth rate, and proactively alerts administrators if the rate of growth is abnormal.
Outputs of the test : One set of results for the MongoDB server monitored.
The measures made by this test are as follows:
| Measurement |
Description |
Measurement Unit |
Interpretation |
| Error_count |
Indicates the number of error messages logged in the log files during the last measurement period. |
Number |
Ideally, the value of this measure should be 0.
If a non-zero value is reported, you can use the detailed diagnosis of this measure to know what error occurred and when. |
| Fatal_count |
Indicates the number of fatal errors captured by the log files during the last measurement period. |
Number |
Ideally, the value of this measure should be 0.
If a non-zero value is reported, you can use the detailed diagnosis of this measure to know what error occurred and when. |
| Warning_count |
Indicates the number of warning messages logged in the log files during the last measurement period. |
Number |
Ideally, the value of this measure should be 0.
If a non-zero value is reported, you can use the detailed diagnosis of this measure to know what error occurred and when. |
| File_size |
Indicates the current size of the log file. |
MB |
|
| Growth_rate |
Indicates the rate at which the log file is growing. |
MB/Sec |
A high value for this measure or a consistent increase in its value indicates that the Mongo log is rapidly growing and may end up occupying too much space on the volume. |
|