{"id":18408350,"url":"https://github.com/pingcap/sysutil","last_synced_at":"2025-04-05T16:07:38.085Z","repository":{"id":39925048,"uuid":"224096540","full_name":"pingcap/sysutil","owner":"pingcap","description":"sysutil is a library which implementats the gRPC service Diagnostics and shares the diagnostics functions between TiDB and PD.","archived":false,"fork":false,"pushed_at":"2024-11-13T07:05:46.000Z","size":205,"stargazers_count":6,"open_issues_count":3,"forks_count":16,"subscribers_count":29,"default_branch":"master","last_synced_at":"2025-03-29T15:07:20.074Z","etag":null,"topics":[],"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/pingcap.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-11-26T03:44:07.000Z","updated_at":"2024-11-13T07:05:50.000Z","dependencies_parsed_at":"2024-03-11T06:25:49.396Z","dependency_job_id":"47116809-e8f5-43c0-a3bd-f748a853419e","html_url":"https://github.com/pingcap/sysutil","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pingcap%2Fsysutil","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pingcap%2Fsysutil/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pingcap%2Fsysutil/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pingcap%2Fsysutil/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/pingcap","download_url":"https://codeload.github.com/pingcap/sysutil/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247361687,"owners_count":20926643,"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":[],"created_at":"2024-11-06T03:18:39.098Z","updated_at":"2025-04-05T16:07:38.044Z","avatar_url":"https://github.com/pingcap.png","language":"Go","readme":"# sysutil\n\n`sysutil` is a library which implementats the gRPC service [`Diagnostics`][1]\nand shares the diagnostics functions between [TiDB][2] and [PD][3].\n\n[1]: https://github.com/pingcap/kvproto/blob/master/proto/diagnosticspb.proto\n[2]: https://github.com/pingcap/tidb\n[3]: https://github.com/pingcap/pd\n\n## Search log\n\nThe semantics of the log search service is: search for local log files, and filter using predicates, and then return the matched results.\n\nThe following are the predicates that the log interface needs to process:\n\n- `start_time`: start time of the log retrieval (Unix timestamp, in milliseconds). If there is no such predicate, the default is 0.\n- `end_time:`: end time of the log retrieval (Unix timestamp, in milliseconds). If there is no such predicate, the default is `int64::MAX`.\n- `pattern`: filter pattern determined by the keyword. For example, `SELECT * FROM tidb_cluster_log` WHERE \"%gc%\" `%gc%` is the filtered keyword.\n- `level`: log level; can be selected as DEBUG/INFO/WARN/WARNING/TRACE/CRITICAL/ERROR\n- `limit`: the maximum of logs items to return, preventing the log from being too large and occupying a large bandwidth of the network.. If not specified, the default limit is 64k.\n\n## System information collect\n\n### Hardware\n\n- CPU\n- NIC\n- Disk\n- Memory\n\n### System\n\n- sysctl\n- process list\n\n### Load\n\n- CPU\n- Memory\n- NIC\n- Disk IO\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpingcap%2Fsysutil","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpingcap%2Fsysutil","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpingcap%2Fsysutil/lists"}