{"id":37178774,"url":"https://github.com/setlog/process_exporter","last_synced_at":"2026-01-14T20:49:36.896Z","repository":{"id":54971715,"uuid":"227330397","full_name":"setlog/process_exporter","owner":"setlog","description":"Export some prometheus metrics for processes matching a name.","archived":false,"fork":false,"pushed_at":"2023-12-15T05:59:44.000Z","size":8728,"stargazers_count":0,"open_issues_count":2,"forks_count":0,"subscribers_count":5,"default_branch":"master","last_synced_at":"2024-06-19T13:49:11.080Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"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/setlog.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":"2019-12-11T09:47:46.000Z","updated_at":"2019-12-11T09:59:18.000Z","dependencies_parsed_at":"2024-06-19T13:37:13.341Z","dependency_job_id":"455ad931-a904-46a5-b508-40641a6f7b83","html_url":"https://github.com/setlog/process_exporter","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/setlog/process_exporter","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/setlog%2Fprocess_exporter","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/setlog%2Fprocess_exporter/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/setlog%2Fprocess_exporter/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/setlog%2Fprocess_exporter/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/setlog","download_url":"https://codeload.github.com/setlog/process_exporter/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/setlog%2Fprocess_exporter/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28434500,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-14T18:57:19.464Z","status":"ssl_error","status_checked_at":"2026-01-14T18:52:48.501Z","response_time":107,"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":[],"created_at":"2026-01-14T20:49:36.110Z","updated_at":"2026-01-14T20:49:36.882Z","avatar_url":"https://github.com/setlog.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"## process_exporter\n\nMakes available the following metrics for Prometheus for processes matching a given name:\n\n- CPU usage\n- RAM usage\n- Swap usage\n- Disk IO (bytes)\n- Disk IO (count)\n\n### Requirements\n\n- Go 1.13\n\n### Building\n\n```sh\n./build.sh\n```\n\n### Usage\n\n```sh\n./process_exporter -namespace # Prometheus metric namespace (default: \"my\")\n                   -binary # Name of binary to monitor\n                   -nameflag # Infer value of \"name\"-label from value of this command line flag of monitored process (default: \"name\")\n                   -port # Port to listen on for request (default: 80)\n                   -interval # Interval between metrics being refreshed, in seconds (default: 10)\n```\n\n### Metrics\n\nExample output from `curl localhost/metrics` for `process_exporter -binary top -nameflag d` for `top -d 1`. (Exploiting top's `-d` parameter as a unique identifier)\n\n```sh\n# HELP my_cpu Process CPU usage (%)\n# TYPE my_cpu gauge\nmy_cpu{bin=\"top\",name=\"1\",pid=\"26436\"} 3.0630784711756576\n\n# HELP my_ram Process RAM usage (bytes)\n# TYPE my_ram gauge\nmy_ram{bin=\"top\",name=\"1\",pid=\"26436\"} 3.80928e+06\n\n# HELP my_storage_read_bytes Total read from storage (bytes)\n# TYPE my_storage_read_bytes gauge\nmy_storage_read_bytes{bin=\"top\",name=\"1\",pid=\"26436\"} 0\n\n# HELP my_storage_reads Total reads from storage\n# TYPE my_storage_reads gauge\nmy_storage_reads{bin=\"top\",name=\"1\",pid=\"26436\"} 27973\n\n# HELP my_storage_write_bytes Total written to storage (bytes)\n# TYPE my_storage_write_bytes gauge\nmy_storage_write_bytes{bin=\"top\",name=\"1\",pid=\"26436\"} 0\n\n# HELP my_storage_writes Total writes to storage\n# TYPE my_storage_writes gauge\nmy_storage_writes{bin=\"top\",name=\"1\",pid=\"26436\"} 91\n\n# HELP my_swap Process swap usage (bytes)\n# TYPE my_swap gauge\nmy_swap{bin=\"top\",name=\"1\",pid=\"26436\"} 0\n```\n\n### TODO\n\n- Network IO.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsetlog%2Fprocess_exporter","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsetlog%2Fprocess_exporter","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsetlog%2Fprocess_exporter/lists"}