Each of these endpoints can be visited using our browser or using other tools like curl:
$ curl localhost:9000/application/health { "status": "UP", "details": { "mongo": { "status": "UP", "details": { "version": "3.2.2" } }, "diskSpace": { "status": "UP", "details": { "total": 498937626624, "free": 66036432896, "threshold": 10485760 } } }}
This preceding health status gives us the following:
- An overall UP status
- The status of MongoDB
- The status of the diskspace
When other components are added, they may, optionally, add their own health checks.
This immediately solves our first need listed previously. We can inform the system administrator that he or she can write a management script to interrogate our ...