You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
- Temperature, speed, latency, and memory tracking
28
28
- Process monitoring
29
+
- HTTP route tracing
29
30
30
31
## Quick start
31
32
32
-
### Install dependencies
33
+
####Install dependencies
33
34
34
35
```
35
36
npm install chronos-tracker
36
37
```
37
38
38
-
### Create a `chronos-config.js`
39
+
####Create a `chronos-config.js`
39
40
40
41
```js
41
42
// An example `chronos-config.js` file
@@ -56,7 +57,7 @@ chronos.use({
56
57
57
58
**More information on configuring Chronos and setting up notifications below**
58
59
59
-
### Initialize chronos
60
+
####Initialize chronos
60
61
61
62
```js
62
63
constcmd=require('chronos-tracker');
@@ -67,7 +68,6 @@ app.use('/', cmd.track());
67
68
```
68
69
69
70
**Download Chronos** to start monitoring your application data [here]()
70
-
71
71
<!-- # Installation
72
72
73
73
Chronos consists of a [Node](https://nodejs.org/en/) module available through the
@@ -92,28 +92,27 @@ volumes:
92
92
93
93
\*Note: This module leverages the features of [systeminformation](https://systeminformation.io/).
94
94
95
-
96
95
## Configuration
97
96
98
-
The `microservice` property takes in a string. This should be the name of your server or microservice. For **Docker** containers, the same name of the microservice should reflect the name of the corresponding Docker container.
97
+
The `microservice` property takes in a string. This should be the name of your server or microservice. For **Docker** containers, the name of the microservice should be the same as the name of the corresponding Docker container.
99
98
100
-
The `interval` property is optional and takes in an integer in milliseconds. This controls the monitoring frequency between data points. If this is omitted, Chronos will defualt to recording server health every 2000 ms or 2 seconds.
99
+
The `interval` property is optional and takes in an integer. This controls the Chronos monitoring frequency. If this is omitted, Chronos will defualt to recording server health every 2000 ms or 2 seconds.
101
100
102
101
The `dockerized` property is optional and should be specified as `true` if the server is running inside of a Docker container. Otherwise, this should be `false`. If omitted, Chronos will assume this server is not running in a container.
103
102
104
-
The `database` property is required. T takes in the following:
103
+
The `database` property is required and takes in the following:
105
104
-`type` which should be a string and only supports 'MongoDB' and 'PostgreSQL'.
106
-
-`URI` which should be a connection string the database you intend Chronos to write and record data regarding health, communication, and container infomation to. A `.env` is recommended.
105
+
-`URI` which should be a connection string the database you intend Chronos to write and record data regarding health, HTTP route tracing, and container infomation to. A `.env` is recommended.
107
106
108
107
-[6] isDockerized: Is this microservice running in a Docker container? Enter "yes" or "no". (Defaults to "no".)
109
108
- IMPORTANT: When starting up the container, give it the same name that you used for the microservice, because the middleware finds the correct container ID of your container by matching the container name to the microservice name you input as 1st argument.
110
109
- Don't forget to bind mount to Docker socket. See NEW FEATURE section above.
111
110
112
111
## Notifications
113
112
114
-
The `notifications` property is optional and allows developers to set up notifications when the monitored server responds to request with status codes >= 400. To set up notifications, set the value of the `notifications` property to an array of objects each with a `type` and `settings` property.
113
+
The `notifications` property is optional and allows developers to be alerted when the server responds to requests with status codes >= 400. To set up notifications, set the value of the `notifications` property to an array of objects, each with a `type` and `settings` property.
115
114
116
-
Chronos only supports Slack and email notifications.
115
+
Chronos only supports **Slack** and **email** notifications.
117
116
118
117
### Slack
119
118
@@ -172,7 +171,7 @@ The microservices include individual Dockerfiles in their respective directories
172
171
173
172
Refer to the [README](https://github.com/oslabs-beta/Chronos/tree/docker/microservice) of that branch for more details.
174
173
175
-
####Electron desktop application
174
+
## Electron desktop application
176
175
177
176
After installing the node module in each microservice, download the Electron desktop application from the public [Chronos]() repo.
178
177
@@ -182,7 +181,7 @@ Inside the downloaded directory, install all dependencies using the `npm install
182
181
183
182
Development of Chronos is open source on GitHub through the tech accelerator umbrella OS Labs, and we are grateful to the community for contributing bugfixes and improvements. Read below to learn how you can take part in improving Chronos.
0 commit comments