{"id":14989446,"url":"https://github.com/open-catlog/monitor-server","last_synced_at":"2025-04-12T01:16:23.256Z","repository":{"id":148440334,"uuid":"83948811","full_name":"open-catlog/monitor-server","owner":"open-catlog","description":"Monitoring System Server","archived":false,"fork":false,"pushed_at":"2017-07-06T06:37:56.000Z","size":1855,"stargazers_count":15,"open_issues_count":0,"forks_count":2,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-04-12T01:16:10.864Z","etag":null,"topics":["koajs","monitoring-server"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/open-catlog.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"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":"2017-03-05T05:59:37.000Z","updated_at":"2023-11-21T20:35:23.000Z","dependencies_parsed_at":null,"dependency_job_id":"8e8452fc-2f61-459d-a9f3-5f4a71f28e93","html_url":"https://github.com/open-catlog/monitor-server","commit_stats":{"total_commits":43,"total_committers":1,"mean_commits":43.0,"dds":0.0,"last_synced_commit":"41d60b233a0b949fbb722e11472c17dce56e4d2f"},"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/open-catlog%2Fmonitor-server","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/open-catlog%2Fmonitor-server/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/open-catlog%2Fmonitor-server/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/open-catlog%2Fmonitor-server/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/open-catlog","download_url":"https://codeload.github.com/open-catlog/monitor-server/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248501858,"owners_count":21114684,"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":["koajs","monitoring-server"],"created_at":"2024-09-24T14:18:23.144Z","updated_at":"2025-04-12T01:16:23.226Z","avatar_url":"https://github.com/open-catlog.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Monitor-Server\n\n## 1. 项目结构\n\n- build/：存储 [moniter-view](https://github.com/open-catlog/monitor-view) 打包后的 JS 文件\n- controllers/：控制器\n- models/：数据库模型\n- public/：页面入口\n- tasks/：数据采集任务\n- util/：基础工具\n- app.js：项目入口文件\n- config.js：项目配置文件\n- routers.js：路由文件\n\n## 2. 服务端主要工作\n\n  - 负责页面的路由和逻辑处理\n  - 是前端页面和数据库的中间介质\n  - 采集和清理数据：\n      - tasks/cleaner.js：定时进行数据库中的数据清理\n      - tasks/hardwareMiner.js：收集各个服务器的硬件信息，硬件信息采集模块见 [os_tools](https://github.com/open-catlog/os_tools)\n      - tasks/mysqlMiner.js：收集 MySQL 的增删改查次数信息，MySQL信息采集模块见 [mysql_tools](https://github.com/open-catlog/mysql_tools)\n      - tasks/nginxMiner.js：由于 Nginx 本身是 Web 服务器，所以可以直接通过 HTTP 请求进行数据获取，Nginx 的相关配置示例见 [nginxMonitor](https://github.com/open-catlog/nginxMonitor)\n\n## 3. 运行步骤\n\n为方便用户看效果，通过以下步骤可以在不连接数据库的情况下，进行效果的大致预览。首先要确保你的本机拥有 node 环境。\n\n```\n克隆项目到本地：git clone https://github.com/open-catlog/monitor-server\n安装依赖：npm i\n本地运行项目：npm run start\n```\n\n然后在浏览器输入 localhost:6789 就可以看到最终的页面展示了\n\n## 4. 效果预览\n\n### 4.1. PV/UV页面\n  ![](http://cdn1.showjoy.com/images/d6/d6a3720b28a24e379d30d985ab3b7f10.png)\n### 4.2. Nginx页面\n  ![](http://cdn1.showjoy.com/images/af/af9423ee29f34d25a5685bd238b405e8.jpeg)","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fopen-catlog%2Fmonitor-server","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fopen-catlog%2Fmonitor-server","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fopen-catlog%2Fmonitor-server/lists"}