Skip to content

Commit 49f1a07

Browse files
committed
refactor code and readme
1 parent 75bbaf1 commit 49f1a07

File tree

130 files changed

+41
-23033
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

130 files changed

+41
-23033
lines changed

README.md

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -27,14 +27,14 @@ Chronos is a comprehensive developer tool that monitors the health and web traff
2727

2828
### With Chronos 12.0:
2929

30-
- Improved metrics visualization by embedding more interactive and flexible Grafana charts for Docker and Kubernetes examples.
31-
- Increased test coverage up to 80% by crafting comprehensive unit, integration, and end-to-end tests using Jest and Selenium.
32-
- Fixed Docker example for not being able to display metrics correctly.
33-
- Designed an interactive 3D visualization showcasing the infrastructure of Kubernetes clusters (Namespace, Service, Pod), providing enhanced insights into the intricate resource distribution and configuration within the cluster for developers and users.
34-
- Engineered workflow efficiencies by orchestrating CI/CD pipelines, automating testing, and establishing deployment procedures, resulting in accelerated development cycles and higher reliability.
35-
- Increased Typescript coverage for better code quality and application robustness.
36-
- Updated README instructions within the provided Docker and Kubernetes examples for how to configure Prometheus and Grafana in a smooth and easy way.
37-
- Revised README instructions for the `@chronosmicro/tracker` NPM package for how to use this package to monitor their own applications.
30+
- Enhanced metrics visualization by integrating more interactive and adaptable Grafana charts, particularly for Docker and Kubernetes use cases.
31+
- Achieved an 80% boost in test coverage by formulating comprehensive unit, integration, and end-to-end tests employing Jest and Selenium.
32+
- Rectified issues with the Docker example, ensuring accurate metric display.
33+
- Devised an immersive 3D visualization that effectively illustrates the Kubernetes cluster infrastructure, encompassing Namespace, Service, and Pod entities. This dynamic visualization provides developers and users with heightened insights into intricate resource allocation and configuration within the cluster.
34+
- Streamlined operational effectiveness by coordinating CI/CD pipelines, automating testing workflows, and establishing deployment protocols, ultimately leading to accelerated development cycles and heightened dependability.
35+
- Expanded Typescript coverage to enhance code quality and bolster application resilience.
36+
- Updated the Docker and Kubernetes example READMEs with detailed instructions on configuring Prometheus and Grafana seamlessly.
37+
- Enhanced clarity of instructions in the `@chronosmicro/tracker` NPM package's README, offering comprehensive guidance on utilizing the package to monitor individual applications effectively.
3838

3939

4040
**Previously implemented updates:**

chronos_npm_package/server/server.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,4 +76,4 @@ app.use((err, req, res, next) => {
7676
return res.status(errorObj.status).json(errorObj.message);
7777
});
7878

79-
app.listen(port, () => console.log(`Example app listening on port ${port}! chronos_npm_package Server Loaded`))
79+
app.listen(port, () => console.log(`🤖 Example app listening on port ${port}! chronos_npm_package Server Loaded 🎉`))

contributors.md

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
11
## People
2-
2+
[Tyler Coryell](https://github.com/Tcoryell),
3+
[Edwin Leong](https://github.com/edwinlny),
4+
[Eisha Kaushal](https://github.com/eishakaushal),
5+
[Haoyu Liu](https://github.com/HaoyL666),
36
[Snow X. Bai](https://github.com/xueapp),
47
[Taylor Zhang](https://github.com/taylrzhang),
58
[Tim Lee](https://github.com/timlee12),
@@ -33,8 +36,4 @@
3336
[Jeffrey Na](https://github.com/jeffreyNa),
3437
[Brisa Zhu](https://github.com/beezoo10),
3538
[Kelsi Webb](https://github.com/kelsicw),
36-
[Justin Poirier](https://github.com/jcpoirier20),
37-
[Tyler Coryell](https://github.com/Tcoryell),
38-
[Edwin Leong](https://github.com/edwinlny),
39-
[Eisha Kaushal](https://github.com/eishakaushal),
40-
[Haoyu Liu](https://github.com/HaoyL666),
39+
[Justin Poirier](https://github.com/jcpoirier20)

examples/docker/README.md

Lines changed: 13 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ For additional details on how Chronos works this example, please review the Dock
2727

2828
## Grafana API KEY
2929

30-
1. Run docker compose command below (LN 64) to start your Grafana container before you can access your service account token.
30+
1. Run docker compose command below (LN 61) to start your Grafana container before you can access your service account token.
3131

3232
2. In your browser, go to `localhost:32000`, which will be the login page of grafana. Use `admin` as both username and password to login. You can change the password after login.
3333

@@ -51,15 +51,12 @@ CHRONOS_GRAFANA_API_KEY = Bearer [the access token you created in above section
5151

5252
2. Verify that `@chronosmicro/tracker` is a dependency in each of the _books_, _customers_, _frontend_, and _orders_ folders (see the `package.json` in each folder).
5353

54-
- If the @chronosmicro/tracker dependency is listed as a **remote** npm package (i.e. `"@chronosmicro/tracker": "^12.0.1"`) and you've ran `npm install`, no further work is needed continue to step 3. **However, confirm that the "@chronosmicro/tracker" you've installed from npm has the correct database names you will query later because the database automation will build from the npm installed version
54+
- If the @chronosmicro/tracker dependency is listed as a **remote** npm package (i.e. `"@chronosmicro/tracker": "^12.0.1"`) and you've ran `npm install`, no further work is needed continue to step 3. **However, confirm that the "@chronosmicro/tracker" you've installed from npm has the correct information which you will query later because the database automation will build from the npm installed version NOT the root directory level "chronos_npm_package"**
5555

56-
- If you have the dependency as
57-
`"@chronosmicro/tracker": "file:./chronos_npm_package"`, which is a **local** file, make sure to change the version from `"file:./chronos_npm_package"` to `"^12.0.1"` and run npm install.
56+
- If you have the dependency as `"@chronosmicro/tracker": "file:./chronos_npm_package"`, which is a **local** file, make sure to change the version from `"file:./chronos_npm_package"` to `"^12.0.1"` and run npm install. **Unless you are wanting to test local copies of the "Chronos_npm_package" file**
5857

5958
3. With the terminal navigated to the the _examples/docker_ folder, run the command:
6059

61-
> > > No working, installing VSC docker ext<<< --must have docker installed for this command to run
62-
6360
```
6461
docker-compose -f docker-compose.yml up
6562
```
@@ -99,11 +96,17 @@ Use `docker compose down` to remove.
9996
<img alt="docker containers removed" src="../../assets/examples_docker_removed.png">
10097
</p>
10198

102-
## Contributing
103-
104-
Chronos hopes to inspire an active community of both users and developers. For questions, comments, or contributions, please submit a pull request.
99+
## Insight for how to migrate this example to your own app
100+
To configure Prometheus and Grafana, you can simply copy the below yaml files to your own app.
101+
```
105102
106-
Read our [contributing README](../../CONTRIBUTING.md) to further learn how you can take part in improving Chronos.
103+
prometheus.yml
104+
datasource.yml
105+
dashboard.yml
106+
10619_rev1.json
107+
**(Please note dashboard.yml and 10619_rev1.json is just one of many dashboards available on https://grafana.com/grafana/dashboards/)**
108+
```
109+
Then configure Prometheus and Grafana with your own application's deployments using images.
107110

108111
## License
109112

examples/docker/books/chronos_npm_package/.npmignore

Lines changed: 0 additions & 1 deletion
This file was deleted.

0 commit comments

Comments
 (0)