I am working on a Spring-based web-application
that uses several components, including PostgreSQL
, raw filesystem
and more..
I want to make a small admin-page, where an admin will be able to test, if all components are working propery, e.g.:
PostgreSQL
is up, running, and accepts reads/writesFileSystem
is accesible, if there is some space left etc.Do you know of a design solution for this kind of problems (diagnostics/self-checks) ? Should I create methods in the modules that use those components (e.g. in PostgreSQL data access layer) that perform dummy writes and reads confiriming, that the given service/component is working?
You should write MBean using JMX technology for every resource you want to monitor. Implementation of MBeans is up to you (yes, you may do read/writes for DBMS for example).
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With