{"id":21340141,"url":"https://github.com/piorosen/mpstat2csv","last_synced_at":"2026-01-25T06:36:12.160Z","repository":{"id":209478255,"uuid":"724120452","full_name":"Piorosen/mpstat2csv","owner":"Piorosen","description":"Easy to install mpstat2csv conversion tool for chart and graph.","archived":false,"fork":false,"pushed_at":"2024-10-21T14:02:13.000Z","size":17,"stargazers_count":0,"open_issues_count":1,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2024-10-21T21:24:16.523Z","etag":null,"topics":["cpu-monitoring","csv","monitoring","mpstat"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Piorosen.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,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2023-11-27T12:46:18.000Z","updated_at":"2024-10-21T14:02:17.000Z","dependencies_parsed_at":"2023-12-06T00:09:39.302Z","dependency_job_id":"aaef7a37-4bd5-46e1-989f-87fdd65ebdf7","html_url":"https://github.com/Piorosen/mpstat2csv","commit_stats":{"total_commits":9,"total_committers":2,"mean_commits":4.5,"dds":"0.11111111111111116","last_synced_commit":"9b30b72bab40097fef00dae3058c3b95f41da3c4"},"previous_names":["piorosen/mpstat2csv"],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Piorosen%2Fmpstat2csv","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Piorosen%2Fmpstat2csv/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Piorosen%2Fmpstat2csv/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Piorosen%2Fmpstat2csv/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Piorosen","download_url":"https://codeload.github.com/Piorosen/mpstat2csv/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":225824977,"owners_count":17529905,"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":["cpu-monitoring","csv","monitoring","mpstat"],"created_at":"2024-11-22T00:49:24.506Z","updated_at":"2026-01-25T06:36:07.105Z","avatar_url":"https://github.com/Piorosen.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# mpstat2csv\n\nIt was created to measure CPU core usage through `mpstat`.\nIn particular, you can measure previous records through `sar`, but it's more troublesome than anything, right? It is convenient if you can warm up the program and immediately display the measured records as `CSV`. Give it a try! It's convenient.\n\n## Requirements\n\n1. `Python3` (Maybe... wouldn't it work even with Python 3.1? I just used the basic code.)\n2. `mpstat` (if you don't have it, build at install time in install.sh)\n3. `curl` Download for mpstat2csv.\n\n## Getting started?\n\nTo install, run:\n```sh\ncurl -fsSL https://raw.githubusercontent.com/Piorosen/mpstat2csv/main/install.sh | sh\n```\n\nTo uninstall, run:\n```sh\ncurl -fsSL https://raw.githubusercontent.com/Piorosen/mpstat2csv/main/uninstall.sh | sh\n```\n\n## How to run?\n\nEnter the shellcode below to run mpstat for 1 hour.\n\n```sh\n# interval(unit) : Next step in mpstat event(captured cpu core)  (second)\n# Epoch(unit) : interval * Epoch == Total Captured time\nmpstat2csv --interval=1 --epoch=3600 --file=export.csv\n``` \n\n## Result\n\n```sh\n# I ran the code and got the result below.\nmpstat2csv # it just have default value. --interval=1 --epoch=5\n```\n\n|time|all|0|1|2|3|4|\n|---|---|---|---|---|---|---|\n|3:23:01 PM|3.67|4.12|0|6.06|1|12.12 |\n|3:23:02 PM|10.84|15.46 |6|19.39|5 |25|\n|3:23:03 PM|3.49 |6 |0|4.04 |0 |6.25|\n|3:23:04 PM|3.42 |6 |0|2.02 |0.99|9.09|\n|3:23:05 PM|4.11 |4.08|1|4.04 |0 |10|\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpiorosen%2Fmpstat2csv","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpiorosen%2Fmpstat2csv","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpiorosen%2Fmpstat2csv/lists"}