{"id":41319904,"url":"https://github.com/arivum/resource-ticker","last_synced_at":"2026-01-23T05:50:15.183Z","repository":{"id":42703888,"uuid":"416049696","full_name":"arivum/resource-ticker","owner":"arivum","description":"Wraps RAM and CPU resource information gathering. Cgroups and cgroups2 are supported. If none of them is active, fallback to procfs provides resource information.","archived":false,"fork":false,"pushed_at":"2023-03-13T02:04:48.000Z","size":36,"stargazers_count":2,"open_issues_count":3,"forks_count":1,"subscribers_count":1,"default_branch":"main","last_synced_at":"2024-12-22T17:02:46.794Z","etag":null,"topics":["cgroups","cgroups-v2","golang","library","monitoring","procfs"],"latest_commit_sha":null,"homepage":"https://gopkg.in/arivum/resource-ticker.v0","language":"Go","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/arivum.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}},"created_at":"2021-10-11T18:52:38.000Z","updated_at":"2023-12-05T12:47:25.000Z","dependencies_parsed_at":"2023-02-13T07:30:29.192Z","dependency_job_id":null,"html_url":"https://github.com/arivum/resource-ticker","commit_stats":null,"previous_names":[],"tags_count":5,"template":false,"template_full_name":null,"purl":"pkg:github/arivum/resource-ticker","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/arivum%2Fresource-ticker","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/arivum%2Fresource-ticker/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/arivum%2Fresource-ticker/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/arivum%2Fresource-ticker/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/arivum","download_url":"https://codeload.github.com/arivum/resource-ticker/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/arivum%2Fresource-ticker/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28681356,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-23T05:48:07.525Z","status":"ssl_error","status_checked_at":"2026-01-23T05:48:07.129Z","response_time":59,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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":["cgroups","cgroups-v2","golang","library","monitoring","procfs"],"created_at":"2026-01-23T05:50:12.854Z","updated_at":"2026-01-23T05:50:15.167Z","avatar_url":"https://github.com/arivum.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# ResourceTicker\n\nThis module wraps RAM and CPU resource information gathering.\n\nCgroups and cgroups2 are supported. If none of them is active, fallback to procfs provides resource information.\n\nSee [general documenation](https://pkg.go.dev/github.com/arivum/resource-ticker) and [package documentation](https://pkg.go.dev/github.com/arivum/resource-ticker/pkg/resources)\n\n## How to use\n\n```go\npackage main\n\nimport (\n    \"log\"\n    \"github.com/arivum/resource-ticker/pkg/resources\"\n)\n\nfunc main() {\n    if ticker, err := resources.NewResourceTicker(resources.WithCPUFloatingAvg(1)); err != nil {\n        log.Fatal(err)\n    }\n\n    resourceChan, errChan := ticker.Run()\n\n    for {\n\t\tselect {\n\t\tcase r := \u003c-resourceChan:\n\t\t\tlog.Printf(\"$+v\\n\", r.RAM)\n\t\t\tlog.Printf(\"$+v\\n\", r.CPU)\n\t\tcase err := \u003c-errChan:\n\t\t\tlog.Println(err)\n\t\t}\n\t}\n}\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Farivum%2Fresource-ticker","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Farivum%2Fresource-ticker","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Farivum%2Fresource-ticker/lists"}