{"id":15286593,"url":"https://github.com/jkstack/metrics-agent","last_synced_at":"2025-05-07T03:47:06.985Z","repository":{"id":57922295,"uuid":"525716744","full_name":"jkstack/metrics-agent","owner":"jkstack","description":"系统监控agent","archived":false,"fork":false,"pushed_at":"2023-08-17T08:26:13.000Z","size":590,"stargazers_count":6,"open_issues_count":0,"forks_count":8,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-05-07T03:46:59.871Z","etag":null,"topics":["agent","centos","debian","metrics","monitor","suse","ubuntu","windows"],"latest_commit_sha":null,"homepage":"https://jkstack.github.io/docs/agents/metrics-agent/","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"agpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/jkstack.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","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":"2022-08-17T09:10:31.000Z","updated_at":"2024-06-15T02:05:29.000Z","dependencies_parsed_at":"2024-06-19T05:28:37.722Z","dependency_job_id":"7686501c-13ba-4a69-8b31-53ab9fc5ecb6","html_url":"https://github.com/jkstack/metrics-agent","commit_stats":{"total_commits":148,"total_committers":1,"mean_commits":148.0,"dds":0.0,"last_synced_commit":"2e6b67b870feb32c53e2f75892974099734f53ab"},"previous_names":[],"tags_count":24,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jkstack%2Fmetrics-agent","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jkstack%2Fmetrics-agent/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jkstack%2Fmetrics-agent/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jkstack%2Fmetrics-agent/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/jkstack","download_url":"https://codeload.github.com/jkstack/metrics-agent/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":252810275,"owners_count":21807759,"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":["agent","centos","debian","metrics","monitor","suse","ubuntu","windows"],"created_at":"2024-09-30T15:17:18.106Z","updated_at":"2025-05-07T03:47:06.968Z","avatar_url":"https://github.com/jkstack.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# metrics-agent\n\n[![version](https://img.shields.io/github/v/release/jkstack/metrics-agent)](https://github.com/jkstack/metrics-agent/releases/latest)\n[![Go Report Card](https://goreportcard.com/badge/github.com/jkstack/metrics-agent)](https://goreportcard.com/report/github.com/jkstack/metrics-agent)\n[![go-mod](https://img.shields.io/github/go-mod/go-version/jkstack/metrics-agent)](https://github.com/jkstack/metrics-agent)\n[![license](https://img.shields.io/github/license/jkstack/metrics-agent)](https://www.gnu.org/licenses/agpl-3.0.txt)\n![downloads](https://img.shields.io/github/downloads/jkstack/metrics-agent/total)\n\n系统状态监控agent\n\n## 兼容性\n\ngo语言最低支持linux内核版本`2.6.23`\n\n| 系统   | 版本号 | 内核版本 | 是否支持 |\n| :----: | :---: | :-----: | ------- |\n| ubuntu | 12.04 | [3.2](https://en.wikipedia.org/wiki/Ubuntu_version_history#Table_of_versions) | ✅ [数据示例](docs/examples/ubuntu12.md) |\n| ubuntu | 14.04 | 3.13 | ✅ [数据示例](docs/examples/ubuntu14.md) |\n| ubuntu | 16.04 | 4.4  | ✅ [数据示例](docs/examples/ubuntu16.md) |\n| ubuntu | 18.04 | 4.15 | ✅ [数据示例](docs/examples/ubuntu18.md) |\n| ubuntu | 20.04 | 5.4  | ✅ [数据示例](docs/examples/ubuntu20.md) |\n| ubuntu | 22.04 | 5.15 | ✅ [数据示例](docs/examples/ubuntu22.md) |\n| suse   | 10(SP4) | [2.6.16.60-0.132.1](https://www.suse.com/support/kb/doc/?id=000019587) | ❌ |\n| suse   | 11(SP4) | 3.0.101-108.135.1      | ✅ [数据示例](docs/examples/suse11.md) |\n| suse   | 12(SP5) | 4.12.14-122.130.1      | ✅ [数据示例](docs/examples/suse12.md) |\n| suse   | 15(SP4) | 5.14.21-150400.24.18.1 | ✅ [数据示例](docs/examples/suse15.md) |\n| redhat | 5.11 | [2.6.18-398](https://access.redhat.com/articles/3078) | ❌ |\n| redhat | 6.1  | 2.6.32-754     | ✅ [数据示例](docs/examples/redhat6.md) |\n| redhat | 7.9  | 3.10.0-1160    | ✅ [数据示例](docs/examples/redhat7.md) |\n| redhat | 8.6  | 4.18.0-372.9.1 | ✅ [数据示例](docs/examples/redhat8.md) |\n| centos | 5.11 | [2.6.18-398](https://vault.centos.org/5.11/os/Source/) | ❌ |\n| centos | 6.1  | [2.6.32-754](https://vault.centos.org/6.10/os/Source/SPackages/) | ✅ [数据示例](docs/examples/centos6.md) |\n| centos | 7.9-2009 | [3.10.0-1160](https://vault.centos.org/7.9.2009/os/Source/SPackages/) | ✅ [数据示例](docs/examples/centos7.md) |\n| centos | 8.5.2111 | [4.18.0-348](https://vault.centos.org/8.5.2111/BaseOS/Source/SPackages/) | ✅ [数据示例](docs/examples/centos8.md) |\n| windows | XP | | ❌ |\n| windows | 7 Enterprise with Service Pack 1             | | ✅ [数据示例](docs/examples/win7enterprise.md) |\n| windows | 7 Professional with Service Pack 1, VL Build | | ✅ [数据示例](docs/examples/win7professional.md) |\n| windows | 10 Enterprise LTSC 2021                      | | ✅ [数据示例](docs/examples/win10.md) |\n| windows | 2008 R2 Enterprise                           | | ✅ [数据示例](docs/examples/win2008ent.md) |\n| windows | 2008 R2 Datacenter                           | | ✅ [数据示例](docs/examples/win2008dc.md) |\n| windows | 2016 VL                                      | | ✅ [数据示例](docs/examples/win2016vl.md) |\n| windows | 2016(Updated Feb 2018)                       | | ✅ [数据示例](docs/examples/win2016upd2018.md) |\n| windows | 2016 Essentials                              | | ✅ [数据示例](docs/examples/win2016ess.md) |\n| windows | 2019(Updated July 2020)                      | | ✅ [数据示例](docs/examples/win2019.md) |\n| windows | 2022(updated Aug 2022)                       | | ✅ [数据示例](docs/examples/win2022.md) |\n\n## 如何编译\n\n1. 下载源代码\n\n       https://github.com/jkstack/metrics-agent.git\n\n2. 使用以下命令编译，编译成功后会在当前目录下生成`metrics`或`metrics.exe`文件\n\n       go build\n\n## linux系统部署\n\n1. 根据当前操作系统下载`deb`或`rpm`安装包，[下载地址](https://github.com/jkstack/metrics-agent/releases/latest)\n2. 使用`rpm`或`dpkg`命令安装该软件包，程序将被安装到`/opt/metrics-agent`目录下\n3. 按需修改配置文件，配置文件将被安装在`/opt/metrics-agent/conf/agent.conf`目录下，建议修改以下配置内容\n   - basic.id: 客户端ID，在该集群下不可重复\n   - basic.server: 服务器端地址\n4. 使用以下命令启动客户端程序\n\n       /opt/metrics-agent/bin/metrics-agent start\n5. 检查当前客户端是否连接成功\n\n       curl http://\u003c服务端IP\u003e:\u003c端口号(默认13081)\u003e/api/agents/\u003c客户端ID\u003e\n\n## windows系统部署\n\n1. 根据当前操作系统下载`exe`或`msi`安装包，[下载地址](https://github.com/jkstack/metrics-agent/releases/latest)\n2. 安装该安装包，程序默认会被安装到`C:\\Program Files (x86)\\metrics-agent`目录下\n3. 按需修改配置文件，配置文件将默认被安装在`C:\\Program Files (x86)\\metrics-agent\\conf\\agent.conf`目录下，建议修改以下配置内容\n   - basic.id: 客户端ID，在该集群下不可重复\n   - basic.server: 服务器端地址\n4. 使用以下命令打开系统服务管理面板，找到`metrics-agent`服务并启动\n\n       services.msc\n5. 检查当前客户端是否连接成功\n\n       curl http://\u003c服务端IP\u003e:\u003c端口号(默认13081)\u003e/api/agents/\u003c客户端ID\u003e\n\n## 开源社区\n\n文档知识库：https://jkstack.github.io/\n\n\u003cimg src=\"docs/wechat_QR.jpg\" height=200px width=200px /\u003e","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjkstack%2Fmetrics-agent","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjkstack%2Fmetrics-agent","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjkstack%2Fmetrics-agent/lists"}