{"id":15694007,"url":"https://github.com/arianvp/cgroup-exporter","last_synced_at":"2026-02-10T23:05:40.812Z","repository":{"id":257243975,"uuid":"850669207","full_name":"arianvp/cgroup-exporter","owner":"arianvp","description":"This is a lightweight Prometheus exporter for cgroups that only supports the unified cgroup v2 hierarchy. It exposes usage metrics for each cgroup in the hierarchy.","archived":false,"fork":false,"pushed_at":"2026-01-11T17:29:54.000Z","size":153,"stargazers_count":29,"open_issues_count":6,"forks_count":5,"subscribers_count":2,"default_branch":"main","last_synced_at":"2026-01-11T20:24:24.757Z","etag":null,"topics":["cgroups","cgroups-v2","prometheus-exporter","systemd"],"latest_commit_sha":null,"homepage":"","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/arianvp.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,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2024-09-01T12:56:01.000Z","updated_at":"2025-12-12T23:25:15.000Z","dependencies_parsed_at":"2025-05-07T08:19:27.316Z","dependency_job_id":null,"html_url":"https://github.com/arianvp/cgroup-exporter","commit_stats":null,"previous_names":["arianvp/cgroup-exporter"],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/arianvp/cgroup-exporter","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/arianvp%2Fcgroup-exporter","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/arianvp%2Fcgroup-exporter/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/arianvp%2Fcgroup-exporter/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/arianvp%2Fcgroup-exporter/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/arianvp","download_url":"https://codeload.github.com/arianvp/cgroup-exporter/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/arianvp%2Fcgroup-exporter/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29321277,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-10T20:44:44.282Z","status":"ssl_error","status_checked_at":"2026-02-10T20:44:43.393Z","response_time":65,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: 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","prometheus-exporter","systemd"],"created_at":"2024-10-03T18:51:00.920Z","updated_at":"2026-02-10T23:05:40.767Z","avatar_url":"https://github.com/arianvp.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Control Group V2 exporter\n\nThis is a lightweight Prometheus exporter for cgroups that only supports\nthe unified cgroup v2 hierarchy. It exposes usage metrics for each cgroup\nin the hierarchy.\n\nMetrics supported are:\n\n* Pressure stall information (`io.pressure`, `memory.pressure`, `cpu.pressure`). Useful as a leading indicator for performance issues.\n* Events (like OOM, hitting max CPU, Memory, IO, etc) (`io.events`, `memory.events`)\n* Resource usage (`memory.usage`, `cpu.usage`) and limits (`io.max`, `memory.{min,low,high,max}`, `cpu.{min,low,high,max}`)\n* Detailed resource usage (`io.stat`, `memory.stat`, `cpu.stat`)\n    - `io.stat` gives IOPS and bytes read/written per device\n    - `memory.stat` gives page faults, cache, swap, etc\n    - `cpu.stat` gives number of times the CPU was throttled, time spent in different states, etc\n\n\nSystemd dropped support for the legacy cgroup hierarchy in version 256.\nSo there is no point in having the complexity of supporting both cgroup\nversions.\n\n\n## Why another exporter?\n\nCgroup exposes a lot of metrics. This can quickly become overwhelming. Non\nof the other solutions allow you to enable and disable certain metrics to be\ncollected throughout the hierarchy. Neither does this exporter, but we have\nan issue open for it: https://github.com/arianvp/cgroup-exporter/issues/1\n\n[`google/cadvisor`](https://github.com/google/cadvisor) is too heavy-weight, tries to\ndo way more than cgroups, tries to support both cgroupv1 and cgroupv2, and is\nmissing a lot of metrics (like pressure stall information). Furthermore they\nfocus on \"containers\", whilst cgroups and containers are not synonyms. Cgroups\nare used for all services on a modern linux system for resource management; not just containers.\n\n**uodate**: cadvisor now exposes PSI as well https://github.com/google/cadvisor/pull/3649\n\n[`mosquito/cgroups-exporter`](https://github.com/mosquito/cgroups-exporter) also comes with the\nbaggage of supporting both cgroupv1 and cgroupv2, and is missing a lot of metrics.\n\n\n[`treydock/cgroup_exporter`](https://github.com/treydock/cgroup_exporter) also comes with the\nbaggage of supporting both cgroupv1 and cgroupv2, and is missing a lot of metrics.\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Farianvp%2Fcgroup-exporter","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Farianvp%2Fcgroup-exporter","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Farianvp%2Fcgroup-exporter/lists"}