Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[WIP] System health monitoring #25

Open
wants to merge 3 commits into
base: non-admin-users
Choose a base branch
from

Conversation

vishwasmittal
Copy link
Contributor

API to serve data to monitor the system health. Uses Gopsutil library to query system parameters periodically and stores them in the Mysql database which can later be queried using an API by the admins to keep a check on the system health.

@cpg
Copy link
Member

cpg commented Jun 13, 2019

How often do the updates into MySQL happen?

What is the rate of growth of the DB?

Should there be some purging over time?

@vishwasmittal
Copy link
Contributor Author

Updates happen at every 15 seconds and it takes about 3 seconds to take a reading (to calculate the avg CPU usage) therefore, database entries will made every 18 seconds.

Yes, we can perform purging over time. This is to monitor the system health and identify any suspicious/unexpected behavior. We need not keep logs older than a week (or a smaller time frame). For a week it will give us about 33600 database entries.

@vishwasmittal
Copy link
Contributor Author

Currently, it stores CPU and RAM usage information. I am planning to store Disk usage information. What else do you think I should keep account of?

@cpg
Copy link
Member

cpg commented Jun 17, 2019

We decided to put this on hold for the time being. We will review at a later time.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants