{"id":19468414,"url":"https://github.com/noahbailey/sachart","last_synced_at":"2025-02-25T14:25:14.272Z","repository":{"id":187725572,"uuid":"478355707","full_name":"noahbailey/sachart","owner":"noahbailey","description":"Create simple graphs from Sysstat data","archived":false,"fork":false,"pushed_at":"2022-05-03T21:18:19.000Z","size":42,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-01-08T04:40:03.594Z","etag":null,"topics":["linux","sysstat"],"latest_commit_sha":null,"homepage":"","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/noahbailey.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null}},"created_at":"2022-04-06T01:13:37.000Z","updated_at":"2022-04-08T19:02:43.000Z","dependencies_parsed_at":"2023-08-11T23:23:20.989Z","dependency_job_id":null,"html_url":"https://github.com/noahbailey/sachart","commit_stats":null,"previous_names":["noahbailey/sachart"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/noahbailey%2Fsachart","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/noahbailey%2Fsachart/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/noahbailey%2Fsachart/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/noahbailey%2Fsachart/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/noahbailey","download_url":"https://codeload.github.com/noahbailey/sachart/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":240682261,"owners_count":19840474,"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":["linux","sysstat"],"created_at":"2024-11-10T18:41:02.242Z","updated_at":"2025-02-25T14:25:14.229Z","avatar_url":"https://github.com/noahbailey.png","language":"Go","readme":"# SaChart\n\nThis tool's objective is to answer the question, \"Was the CPU load high last night when Foobar broke?\" in a simple way that does not require complex monitoring systems. In conjunction with the lightweight `sysstat` daemon, this tool makes easy to read histograms in your shell. \n\nThere are two modes, CPU and NET mode. \n\nCPU mode shows the data you're used to seeing in tools like `htop`, processor usage, memory usage, and per-core load average. NET mode displays total network throughput on all interfaces as a proportion of the highest measured value, and the system's run queue and blocked threads. \n\nOutput: \n\n`./sachart -cpu`\n\n```\nTIME     | CPU                      | MEMORY                   | LOAD AVG\n13:10:01 |@######                   |****                      ||||\n13:15:01 |@######                   |****                      |||||\n13:20:01 |@#######                  |****                      |||||\n13:25:01 |@#######                  |****                      |||||\n13:30:01 |@#######                  |****                      ||||||\n13:35:01 |##                        |****                      ||||\n13:40:01 |                          |****                      ||\n13:45:01 |                          |****                      |\n```\n\n`./sachart -net`\n\n```\nTIME     | DOWNLOAD                 | UPLOAD                   | IO (RunQ + Blocked)\n13:10:01 |===================       |========================  |\n13:15:01 |=================         |========================  |--------------\n13:20:01 |=====================     |========================= |--------\n13:25:01 |========================= |========================  |-\n13:30:01 |=======================   |========================  |---\n13:35:01 |=====                     |=====                     |--\n13:40:01 |                          |                          |\n13:45:01 |                          |                          |\n```\n\nPrevious days data can also be viewed by using the `-days` flag. For example, to see yesterday's CPU graph:\n\n`./sachart -cpu -days 1`\n\n```\nTIME     | CPU                      | MEMORY                   | LOAD AVG\n13:20:02 |                          |*                         |\n13:25:01 |#                         |****                      |\n13:30:01 |#                         |****                      |\n13:35:01 |#                         |****                      ||\n13:40:01 |@##                       |****                      |||\n```\n\n## Sysstat setup\n\nMake sure sysstat is installed: \n\n    sudo apt install sysstat\n\nThe service should be running: \n\n    sudo systemctl enable --now sysstat.service\n\nAnd data collection should be enabled: \n\n    sudo sed -i 's/false/true/g' /etc/default/sysstat\n\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnoahbailey%2Fsachart","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fnoahbailey%2Fsachart","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnoahbailey%2Fsachart/lists"}