{"id":19800539,"url":"https://github.com/scsibug/osxstats2pulsar","last_synced_at":"2026-07-21T15:12:26.798Z","repository":{"id":137584447,"uuid":"316117345","full_name":"scsibug/osxstats2pulsar","owner":"scsibug","description":"Send OS X system statistics to Apache Pulsar","archived":false,"fork":false,"pushed_at":"2020-11-26T03:54:11.000Z","size":12,"stargazers_count":2,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-10-23T18:10:04.542Z","etag":null,"topics":["iot","osx","pulsar"],"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/scsibug.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":"2020-11-26T03:52:07.000Z","updated_at":"2021-11-18T17:08:18.000Z","dependencies_parsed_at":null,"dependency_job_id":"c5e4b8d8-ad01-401d-a55d-c7edb2c30af6","html_url":"https://github.com/scsibug/osxstats2pulsar","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/scsibug/osxstats2pulsar","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/scsibug%2Fosxstats2pulsar","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/scsibug%2Fosxstats2pulsar/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/scsibug%2Fosxstats2pulsar/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/scsibug%2Fosxstats2pulsar/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/scsibug","download_url":"https://codeload.github.com/scsibug/osxstats2pulsar/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/scsibug%2Fosxstats2pulsar/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":35728082,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-07-20T02:08:10.276Z","status":"online","status_checked_at":"2026-07-21T02:00:06.728Z","response_time":109,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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":["iot","osx","pulsar"],"created_at":"2024-11-12T07:39:25.824Z","updated_at":"2026-07-21T15:12:26.773Z","avatar_url":"https://github.com/scsibug.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Overview\n\nThis is just a hack to send health information from my MacBook Pro to a local Pulsar server.\n\nInformation is collected on a configurable basis (default 30 sec), and includes:\n\n* Networking\n  * input/output packets/sec\n  * input/output bytes/sec\n* Backlight\n  * percentage brightness\n* Disk\n  * read/write operations/sec\n  * read/write bytes/sec\n* CPU\n  * CPU/integrated graphics/system agent power usage in watts\n  * ratio of actual to nominal CPU frequency\n  * ratio of active cores\n  * average number of active cores\n  * intgegrated GPU active ratio\n* GPU\n  * average clock frequency (if dedicated graphics running)\n  * GPU busy ratio\n* SMC\n  * fan speed in RPM\n  * CPU die temperature\n  * GPU die temperature\n* System info\n  * hardware model identifier\n  * EFI version\n  * kernel OS version\n  * system boot time\n  * 1, 5, 15 minute load averages\n* Script info\n  * version of this script\n  * status (starting, running, exited)\n  * script startup time\n\nEach of these categories is written to a Pulsar topic, in Avro format.\n\n# Installation\n\nCopy this directory into root's home (```/var/root/```).\n\n## Python setup\n\nUsing pyenv, install Python 3.8.6, and install the ```pulsar-client``` module via pip.\n\nSet that version as root's default using:\n\n```\npyenv global 3.8.6\n```\n\n## Autorun with Launchd\n\nCopy ```osxstats2pulsar.plist``` into ```/Library/LaunchDaemons```.\n\nConfigure service for automatic launching with:\n```lunchctl load -w /Library/LaunchDaemons/osxstats2pulsar.plist```.\n\nVerify the process is running with the command:\n```launchctl list | grep osxstats```\n\nExample output:\n\n```\n# launchctl list | grep osxstats\n837\t0\tlocal.osxstats2pulsar\n```\n\nIf the first number is non-zero, that is the PID of the currently running process.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fscsibug%2Fosxstats2pulsar","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fscsibug%2Fosxstats2pulsar","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fscsibug%2Fosxstats2pulsar/lists"}