Skip to content

Commit f92e5fa

Browse files
authored
Merge pull request #20 from oslabs-beta/brisa_README_cleanup
Brisa README cleanup
2 parents 07cc904 + 04fe17f commit f92e5fa

26 files changed

+3403
-3294
lines changed

CONTRIBUTING.md

+14-9
Original file line numberDiff line numberDiff line change
@@ -14,19 +14,24 @@ Chronos welcomes all pull requests.
1414
6. Create a pull request to `master`.
1515

1616
## Getting started
17-
- `npm run bot`: Run Node and Electron at the same time to start Chronos app
18-
- To make changes to codebase on the Main Process
17+
- `npm run dev:app` and `npm run dev:electron`: Run Node and Electron at the same time to start Chronos app
18+
- To make changes to codebase on the Main Process:
1919
- Files in the main process must be compiled prior to starting the app
20-
- In the terminal un Chronos directory, input `tsc` to comile typescript files
21-
- Once compiled, `npm run both`
22-
* Note** If typescript is not installed, `npm install -g typescript`
20+
- In the terminal in Chronos directory, input `tsc` to compile typescript files
21+
- Once compiled, `npm run dev:app` and `npm run dev:electron`
22+
* Note: If typescript is not installed, `npm install -g typescript`
2323

24+
## Chronos Website
25+
26+
The `chronosWebsite` branch holds the code for the website. Edit the website by checking out the branch, modifying the website, and then updating the AWS S3 bucket with the changes.
2427
## Issues
2528

26-
Please do not hesitate to file issues. Chronos is based off of community feedback and is always looking for ways to get better. The team behind Chronos is interested to hear about your experience and how we can improve it.
29+
Please do not hesitate to file issues that detail bugs or offer ways to enhace Chronos.
30+
31+
Chronos is based off of community feedback and is always looking for ways to get better. The team behind Chronos is interested to hear about your experience and how we can improve it.
2732

28-
Please do not hesitate to submit issues that promote bugs or offer ways to enhance to Chronos. When submitting issues, ensure your description is clear and has instructions to be able to reproduce the issue.
33+
When submitting issues, ensure your description is clear and has instructions to be able to reproduce the issue.
2934

30-
## Get in touch
35+
## Get In Touch
3136

32-
We use GitHub as a platform of communication between users and developers to promote transparency. We thrive off of the community support and feedback
37+
We use GitHub as a platform of communication between users and developers to promote transparency, community support and feedback.

README.md

+103-66
Large diffs are not rendered by default.

__tests__/README.md

+3-7
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@
55
1. React Testing Library versions 13+ require React v18. If your project uses an older version of React, be sure to install version 12
66
```
77
npm install --save-dev @testing-library/react@12
8-
98
```
109
2. install additional packages
1110
```
@@ -55,12 +54,9 @@ module.exports = {
5554

5655
6. use `npm run test` to run jest tests
5756

58-
### Contributing
57+
## Contributing
5958

6059
Chronos hopes to inspire an active community of both users and developers. For questions, comments, or contributions, please submit a pull request.
6160

62-
### People
63-
[Snow X. Bai](https://github.com/xueapp)
64-
[Taylor Zhang](https://github.com/taylrzhang)
65-
[Tim Lee](https://github.com/timlee12)
66-
[Roberto Meloni](https://github.com/RobertoRueMeloni)
61+
Read our [contributing README](../../CONTRIBUTING.md) to further learn how you can take part in improving Chronos.
62+

assets/examples_docker_data.png

37.7 KB
Loading

assets/examples_docker_removed.png

38 KB
Loading

assets/examples_docker_stop.png

38.2 KB
Loading
130 KB
Loading
334 KB
Loading

assets/gRPC_example_reverseProxy.png

60.1 KB
Loading

chronos_npm_package/README.md

+15-35
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,7 @@
1-
# Chronos
2-
Visit our splash page at [chronoslany.com](https://chronoslany.com/)
3-
4-
Chronos is a comprehensive developer tool that monitors the health and web traffic of servers, microservices, and containers. Use Chronos to see real-time data monitoring and receive automated notifications over Slack or email.
5-
6-
#
7-
81
## What's New?
92
- Bug Fixes
10-
- Metric query tool so you can filter out specific metrics — now you only have to see what you want on the dashboard.
11-
- Additional metrics added, bringing Chronos up from only 12 to 100+ metrics that are currently available
12-
- Option to filter by category and individual metric, and flip between services and categories with ease
13-
- Kubernetes monitoring via Prometheus server
14-
- Apache Kafka monitoring capability, all you need to do is run Prometheus JMX exporter on the system your Chronos application is running on. A sample JMX config.yaml file is provided in the Chronos repository for a quick and easy setup, however you are free to configure however you like.
15-
3+
- Refactored code for additional modularity and customization
4+
- Ability for developers to increase number of metrics monitored for microservices
165
#
176

187
## Features
@@ -35,7 +24,6 @@ Install the package as a dependency in each of the microservices you want to tra
3524
npm install @chronosmicro/tracker
3625
```
3726

38-
<br>
3927

4028
### Configuring Chronos Tracker
4129
Create a `.js` Chronos configuration file (hereby referred to as `chronos-config.js`), which exports a JavaScript object with required Chronos configuration parameters. This object will be used as the sole Chronos class constructor argument. Feel free to use a `.env` file to hold sensitive parameters like the database URI, for example.
@@ -75,21 +63,20 @@ module.exports = {
7563
}
7664
```
7765

78-
Then utilize the `chronos-config.js` file into your microservice application by importing it and using it as the Chronos class constructor argument:
66+
Then utilize the `chronos-config.js` file into your application by importing it and using it as the Chronos class constructor argument:
7967
```js
8068
const chronosConfig = require('./chronos-config.js');
8169
const Chronos = require('@chronosmicro/tracker');
8270
const chronos = new Chronos(chronosConfig);
8371
```
8472

85-
<br>
8673

8774
#### Chronos Configuration Parameters
8875
_See mode-specific configuration descriptions in the "Chronos Tracker for Microservices" section_
8976

9077
The `microservice` property takes in a string. This should be a descriptive name for your microservice.
9178

92-
- <img src="assets/important.png" alt="Important" title="Important" align="center" height="20" /> For **Dockerized** microservices, this field **must** match the _container_name_ of the corresponding Docker container.
79+
- <img src="../assets/important.png" alt="Important" title="Important" align="center" height="20" /> For **Dockerized** microservices, this field **must** match the _container_name_ of the corresponding Docker container.
9380

9481
The `interval` property is optional and takes in an integer. This controls the Chronos monitoring frequency. If this is omitted, Chronos will default to recording server health every 60000 ms or 60 seconds.
9582

@@ -144,14 +131,13 @@ Chronos provides the option to send emails. The properties that should be provi
144131
- `user` - The email address (string) of the sender
145132
- `password` - The password (string) of the sender email
146133

147-
_NOTE: Email notification settings may require alternative security settings to work_
148134

149-
<br>
135+
**NOTE: Email notification settings may require alternative security settings to work**
150136

151137
### Chronos Tracker for "Microservices" Mode
152138
The mode `microservices` uses the additional setting `dockerized`, which indicates whether or not the microservice has been containerized with Docker. If omitted, Chronos will assume this server is not running in a container, i.e. `dockerized` will default to _false_.
153139

154-
Setting the flag to _false_ will collect metrics from the host computer directly, while _true_ indicates for Chronos to pull metrics from the Docker daemon.
140+
Setting the flag to `false` will collect metrics from the host computer directly, while `true` indicates for Chronos to pull metrics from the Docker daemon.
155141

156142
```js
157143
// Excerpt from a chronos-config.js
@@ -175,7 +161,9 @@ const chronos = new Chronos(chronosConfig);
175161
chronos.track()
176162
```
177163

178-
If you are using an Express.js REST API, calling `Chronos.track()` returns middleware that allows users to track incoming network requests and outgoing their corresponding outgoing responses by marking them with unique IDs using `Chronos.propagate`. If you want to utilize this feature, setup a catchall route that will serve as a pass through for tracking and chain in the middleware from `Chronos.track`.
164+
If you are using an Express.js REST API, calling `Chronos.track()` returns middleware that allows users to track incoming network requests and outgoing their corresponding outgoing responses by marking them with unique IDs using `Chronos.propagate`.
165+
166+
If you want to utilize this feature, setup a catchall route that will serve as a pass through for tracking and chain in the middleware from `Chronos.track`.
179167

180168
```js
181169
const chronosConfig = require('./chronos-config.js');
@@ -211,7 +199,6 @@ If you're using `docker-compose` to start up multiple containers, you can add a
211199
volumes:
212200
- "/var/run/docker.sock:/var/run/docker.sock"
213201
```
214-
<br>
215202

216203
### Chronos Tracker for "Kubernetes" Mode
217204
Chronos can monitor an Kubernetes clusters by saving metric data from instant queries to a Prometheus server in your Kubernetes cluster.
@@ -241,7 +228,6 @@ const Chronos = require('@chronosmicro/tracker');
241228
const chronos = new Chronos(chronosConfig);
242229

243230
chronos.kubernetes();
244-
245231
```
246232

247233

@@ -264,7 +250,7 @@ module.exports = {
264250
}
265251
```
266252

267-
Then, in ***ONE AND ONLY ONE** of your microservices, call `Chronos.kafka`:
253+
Then, in **ONE AND ONLY ONE** of your microservices, call `Chronos.kafka`:
268254
```js
269255
const chronosConfig = require('./chronos-config.js');
270256
const Chronos = require('@chronosmicro/tracker');
@@ -279,7 +265,7 @@ When viewing your information in the Chronos Electron application the data will
279265

280266
### Chronos Tracker for gRPC
281267

282-
To monitory your gRPC server, setup `chronos-config.js` as if it was a standard microservices example, but be sure to set the `connection` type to `gRPC`.
268+
To monitor your gRPC server, setup `chronos-config.js` as if it was a standard microservices example, but be sure to set the `connection` type to `gRPC`.
283269

284270
```js
285271
module.exports = {
@@ -400,14 +386,10 @@ chronos.link(client, ServerWrapper);
400386
### Viewing Chronos Data
401387
Once you have configured and intialized Chronos Tracker, it will automatically record monitoring data when your servers are running. The data will be saved into your database of choice, and then start the Chronos desktop app to view by cloning our [GitHub repo](https://github.com/open-source-labs/Chronos). Folow the ReadMe in that repo to setup the Chronos desktop app.
402388

403-
<br>
404389

405390
## Examples
406391

407-
We provide working example microservice applications in Chronos desktop app repo in the *examples* folder.
408-
[GitHub repo](https://github.com/open-source-labs/Chronos)
409-
410-
#
392+
We provide working example microservice applications in Chronos desktop app repo in the [**examples**](../chronos_npm_package/README.md) folder.
411393

412394
## Technologies
413395
- Electron
@@ -424,18 +406,16 @@ We provide working example microservice applications in Chronos desktop app repo
424406
- Docker
425407
- Kubernetes
426408

427-
#
428409

429410
## Contributing
430411

431-
Development of Chronos is open source on GitHub through the tech accelerator umbrella OS Labs, and we are grateful to the community for contributing bug fixes and improvements. Read below to learn how you can take part in improving Chronos.
412+
Chronos hopes to inspire an active community of both users and developers. For questions, comments, or contributions, please submit a pull request.
432413

433-
[Contributing](https://github.com/oslabs-beta/Chronos/blob/master/CONTRIBUTING.md)
414+
Read our [contributing README](../../CONTRIBUTING.md) to further learn how you can take part in improving Chronos.
434415

435-
#
436416

437417
## License
438418

439-
Chronos is MIT licenced
419+
[MIT](https://github.com/oslabs-beta/Chronos/blob/master/LICENSE.md)
440420
#
441421
###### Return to [Top](#chronos)

chronos_npm_package/controllers/mongo.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -128,7 +128,7 @@ mongo.health = async ({ microservice, interval, mode }) => {
128128
};
129129

130130
/**
131-
* Runs instead of health if dockerized is true
131+
* !Runs instead of health if dockerized is true
132132
* Collects information on the docker container
133133
*/
134134
mongo.docker = ({ microservice, interval, mode }) => {

chronos_npm_package/controllers/postgres.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -221,7 +221,7 @@ postgres.health = async ({ microservice, interval, mode }) => {
221221
};
222222

223223
/**
224-
* Runs instead of health
224+
* !Runs instead of health for docker
225225
* If dockerized is true, this function is invoked
226226
* Collects information on the container
227227
*/

chronos_npm_package/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@chronosmicro/tracker",
3-
"version": "8.0.3",
3+
"version": "11.0.1",
44
"description": "Chronos microservice metrics tracker",
55
"main": "chronos.js",
66
"scripts": {

contributors.md

+36
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
## People
2+
3+
[Snow X. Bai](https://github.com/xueapp),
4+
[Taylor Zhang](https://github.com/taylrzhang),
5+
[Tim Lee](https://github.com/timlee12),
6+
[Roberto Meloni ](https://github.com/RobertoRueMeloni),
7+
[Brian Lim](https://github.com/brianlim89),
8+
[Claire Tischuk](https://github.com/BoopdiBop),
9+
[Lennon Stewart](https://github.com/noahoo7),
10+
[Victor Ye](https://github.com/vctorye),
11+
[Josh James](https://github.com/joshjames289),
12+
[Elise Nie](https://github.com/elisanie),
13+
[Gahl Peled](https://github.com/GP3-RS),
14+
[Troy Prejusa](https://github.com/tprejusa),
15+
[Vince Ho](https://github.com/hodesza)
16+
[Matt Jiang](https://github.com/mattljiang),
17+
[Derek Lam](https://github.com/DerekQuoc),
18+
[Kit Loong Yee](https://github.com/kitloong1),
19+
[Tim Atapagra](https://github.com/timpagra),
20+
[Mohtasim Chowdhury](https://github.com/mohtasim317),
21+
[Ousman Diallo](https://github.com/Dialloousman),
22+
[Michelle Herrera](https://github.com/mesherrera),
23+
[Duane McFarlane](https://github.com/Duane11003),
24+
[Ben Mizel](https://github.com/ben-mizel),
25+
[Jenae Pennie](https://github.com/jenaepen),
26+
[Chris Romano](https://github.com/robicano22),
27+
[Natalie Umanzor](https://github.com/nmczormick),
28+
[John Donato](https://github.com/jdonuto),
29+
[Iris Wong](https://github.com/wiris316),
30+
[Jon Cruz](https://github.com/Jrcrz),
31+
[Elena Atencio](https://github.com/elenaatencio),
32+
[Lucie Seidler](https://github.com/LucieSeidler),
33+
[Jeffrey Na](https://github.com/jeffreyNa),
34+
[Brisa Zhu](https://github.com/beezoo10),
35+
[Kelsi Webb](https://github.com/kelsicw),
36+
[Justin Poirier](https://github.com/jcpoirier20)

examples/AWS/AWS-EC2/README.md

+2-14
Original file line numberDiff line numberDiff line change
@@ -124,22 +124,10 @@ git archive -v -o myMM.zip --format=zip HEAD
124124
2. Select `cloud-based`
125125

126126
3. Use Access Key, Secret Access Key, region, and EC2 instance ID to start monitoring EC2 instance.
127-
128127
## Contributing
128+
129129
Chronos hopes to inspire an active community of both users and developers. For questions, comments, or contributions, please submit a pull request.
130130

131-
## People
132-
[Snow X. Bai](https://github.com/xueapp)
133-
[Taylor Zhang](https://github.com/taylrzhang)
134-
[Tim Lee](https://github.com/timlee12)
135-
[Roberto Meloni ](https://github.com/RobertoRueMeloni)
136-
[Brian Lim](https://github.com/brianlim89)
137-
[Claire Tischuk](https://github.com/BoopdiBop)
138-
[Lennon Stewart](https://github.com/noahoo7)
139-
[Victor Ye](https://github.com/vctorye)
140-
[John Donato](https://github.com/jdonuto)
141-
[Iris Wong](https://github.com/wiris316)
142-
[Jon Cruz](https://github.com/Jrcrz)
143-
[Elena Atencio](https://github.com/elenaatencio)
131+
Read our [contributing README](../../CONTRIBUTING.md) to further learn how you can take part in improving Chronos.
144132

145133

examples/AWS/AWS-ECS/README.md

+2-14
Original file line numberDiff line numberDiff line change
@@ -69,20 +69,8 @@ Step 7: Deploy test application in ECS
6969
### Some notes about the ECS-test
7070

7171
The way deployment set up is using Fargate, you will not be able to see graphs in ECS cluster->metrics. Instead, check inside services or Cloudwatch.
72-
7372
## Contributing
73+
7474
Chronos hopes to inspire an active community of both users and developers. For questions, comments, or contributions, please submit a pull request.
7575

76-
## People
77-
[Snow X. Bai](https://github.com/xueapp)
78-
[Taylor Zhang](https://github.com/taylrzhang)
79-
[Tim Lee](https://github.com/timlee12)
80-
[Roberto Meloni ](https://github.com/RobertoRueMeloni)
81-
[Brian Lim](https://github.com/brianlim89)
82-
[Claire Tischuk](https://github.com/BoopdiBop)
83-
[Lennon Stewart](https://github.com/noahoo7)
84-
[Victor Ye](https://github.com/vctorye)
85-
[John Donato](https://github.com/jdonuto)
86-
[Iris Wong](https://github.com/wiris316)
87-
[Jon Cruz](https://github.com/Jrcrz)
88-
[Elena Atencio](https://github.com/elenaatencio)
76+
Read our [contributing README](../../CONTRIBUTING.md) to further learn how you can take part in improving Chronos.

examples/AWS/AWS-EKS/README.md

-10
Original file line numberDiff line numberDiff line change
@@ -160,13 +160,3 @@ This process can also be done using the AWS Command Line Interface (CLI) or the
160160

161161
## Credit
162162
Credit for Knote application goes to the user learnK8s on [Github](https://github.com/learnk8s). Here is the source project [folder](https://github.com/learnk8s/knote-js/tree/master/04-05/kube).
163-
164-
## People
165-
[Brian Lim](https://github.com/brianlim89)
166-
[Claire Tischuk](https://github.com/BoopdiBop)
167-
[Lennon Stewart](https://github.com/noahoo7)
168-
[Victor Ye](https://github.com/vctorye)
169-
[John Donato](https://github.com/jdonuto)
170-
[Iris Wong](https://github.com/wiris316)
171-
[Jon Cruz](https://github.com/Jrcrz)
172-
[Elena Atencio](https://github.com/elenaatencio)

0 commit comments

Comments
 (0)