Chronos Microservice Debugger
Chronos Microservice Debugger consists of an npm package with an optional Electron front end to visualize information collected through use of npm package.
npm install chronos-microservice-debugger
There are two main aspects to Chronos-Microservice-Debugger
- Communication Monitor: Listens in on all microservice-microservice and microservice-client communication and monitors the response statuses and messages to ensure communications are making it to the correct destination successfully.
- Health Monitor: The health monitor checks the status of your microservice every second and sends this health information to an optional electron frontend where it is visualized for easier use.
To use the npm package, there are three required parameters and an optional fourth parameter. You can enter the items as individual strings or as an array containing the three required parameters and one optional parameter.
The parameters are:
- microserviceName: What do you want to name the current microservice
- databaseType: We currently support PostgreSQL and Mongo. Enter "mongo" or "sql"
- databaseURL: Where would you like to store your information? Enter the URL to your database
- queryFrequency: How often do you want microHealth to monitor the health of your database? It defaults to every second, but you can choose:
- "s" : The default, monitors every second
- "m" : Monitors every minute
- "h" : Monitors every hour
- "d" : Monitors once per day
- "w" : Monitors once per week
String parameter example:
// How to use chronos-microservice-debuggerappchronos-microservice-debugger)// Example using string parametersapp// Note: microCom does not utilize queryFreq because it logs all communication when an endpoint is hitchronos-microservice-debugger
Array parameter example:
let values ='microserviceName''databaseType''databaseURL''queryFrequency'// How to use chronos-micrservice-debugger with an array parameterapp
Chronos uses a user-owned and provided database to ensure that your private data stays private. We currently support MongoDB and SQL/PostgreSQL databases.
Things in the Works
- gRPC support
- 'Time Travel' to see how your microservices have changed over time
- Docker health information for containerized microservices
- Implement additional unit testing
- Published Electron application with cross-browser compatibility
- Microservice Architecture Visualizer
- Chronos Website (Coming Soon): http://chronos.ninja
- Gitub Page: https://github.com/oslabs-beta/Chronos
For questions, requests, or more information, please contact us at firstname.lastname@example.org