{"id":19032836,"url":"https://github.com/nomadsdev/sys-moninsight","last_synced_at":"2025-02-21T20:28:45.143Z","repository":{"id":255322535,"uuid":"849227819","full_name":"nomadsdev/sys-monInsight","owner":"nomadsdev","description":"System Monitoring and Analysis Tool is a utility for real-time performance tracking. It logs CPU, memory, and disk usage, provides visual graphs, and offers performance recommendations. Perfect for optimizing system efficiency.","archived":false,"fork":false,"pushed_at":"2024-08-29T08:11:15.000Z","size":5,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-01-02T04:28:51.699Z","etag":null,"topics":["automation","cpu-usage","data-analysis","data-visualization","disk-usage","matplotlib","memory-usage","performance-analysis","performance-optimization","psutil","python","real-time-monitoring","resource-management","sys-moninsight","system-metrics"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/nomadsdev.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-08-29T08:01:30.000Z","updated_at":"2024-08-29T09:11:22.000Z","dependencies_parsed_at":"2024-08-29T17:16:08.744Z","dependency_job_id":null,"html_url":"https://github.com/nomadsdev/sys-monInsight","commit_stats":null,"previous_names":["nomadsdev/sys-moninsight"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nomadsdev%2Fsys-monInsight","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nomadsdev%2Fsys-monInsight/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nomadsdev%2Fsys-monInsight/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nomadsdev%2Fsys-monInsight/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/nomadsdev","download_url":"https://codeload.github.com/nomadsdev/sys-monInsight/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":240082967,"owners_count":19745327,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["automation","cpu-usage","data-analysis","data-visualization","disk-usage","matplotlib","memory-usage","performance-analysis","performance-optimization","psutil","python","real-time-monitoring","resource-management","sys-moninsight","system-metrics"],"created_at":"2024-11-08T21:31:56.709Z","updated_at":"2025-02-21T20:28:45.116Z","avatar_url":"https://github.com/nomadsdev.png","language":"Python","readme":"# System Monitoring and Analysis Tool \n \n## Overview\nThis project is a Python-based system monitoring and analysis tool designed to track and log the CPU, memory, and disk usage of your computer. The tool provides real-time usage statistics, logs data to a CSV file, and offers recommendations based on system performance. It also includes data visualization capabilities for analyzing historical usage trends. \n \n## Features\n- **Real-Time Monitoring**: Captures CPU, memory, and disk usage statistics every second. \n- **Data Logging**: Logs usage data to a CSV file for historical analysis. \n- **Data Analysis**: Analyzes logged data and generates plots to visualize CPU, memory, and disk usage over time. \n- **Recommendations**: Provides suggestions for optimizing system performance based on current usage metrics. \n \n## Installation\n1. **Clone the Repository** \n \n   ```bash \n   git clone https://github.com/nomadsdev/sys-monInsight.git \n   cd sys-monInsight\n   ``` \n \n2. **Install Dependencies** \n \n   Ensure you have Python 3.x installed. Then install the required Python packages using pip: \n \n   ```bash \n   pip install psutil pandas matplotlib \n   ``` \n \n## Usage\n1. **Run the Monitoring Script** \n \n   Execute the monitoring script to start logging system usage data: \n \n   ```bash \n   python main.py \n   ``` \n \n   The script will log data to `system_usage_log.csv` and print real-time statistics and recommendations to the console. \n \n2. **Analyze Data** \n \n   To visualize the logged data, run the following script: \n \n   ```bash \n   python main.py \n   ``` \n \n   This script will read the `system_usage_log.csv` file and generate plots for CPU, memory, and disk usage over time. \n \n## Scripts \n### `main.py` \n \n- **Function**: Collects system usage data and logs it to a CSV file. \n- **Functions**: \n  - `get_cpu_usage()`: Retrieves the current CPU usage percentage. \n  - `get_memory_usage()`: Retrieves current memory usage statistics. \n  - `get_disk_usage()`: Retrieves current disk usage statistics. \n  - `log_usage_to_csv()`: Logs the collected data to `system_usage_log.csv`. \n  - `provide_recommendations()`: Provides recommendations based on system usage. \n \n### `analyze.py` \n \n- **Function**: Analyzes and visualizes the logged system usage data. \n- **Functions**: \n  - `analyze_data(file_path)`: Loads data from a CSV file and generates usage plots. \n \n## File Structure\n- `monitor.py`: Script for monitoring and logging system usage. \n- `analyze.py`: Script for analyzing and visualizing logged data. \n- `system_usage_log.csv`: CSV file where usage data is logged. \n- `README.md`: This documentation file. \n \n## Recommendations\n- **High CPU Usage**: Consider upgrading your CPU or optimizing applications. \n- **High Memory Usage**: Consider adding more RAM or closing unnecessary applications. \n- **High Disk Usage**: Consider cleaning up or expanding disk space. \n \n## License\nThis project is licensed under the MIT License.\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnomadsdev%2Fsys-moninsight","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fnomadsdev%2Fsys-moninsight","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnomadsdev%2Fsys-moninsight/lists"}