{"id":19993477,"url":"https://github.com/stulzq/MonitoringSystem","last_synced_at":"2025-05-04T12:31:42.240Z","repository":{"id":95704736,"uuid":"152537520","full_name":"stulzq/MonitoringSystem","owner":"stulzq","description":"prometheus \u0026 grafana help doc.","archived":false,"fork":false,"pushed_at":"2018-10-12T14:46:25.000Z","size":116,"stargazers_count":6,"open_issues_count":0,"forks_count":1,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-04-03T22:36:39.931Z","etag":null,"topics":["grafana","monitoring","prometheus"],"latest_commit_sha":null,"homepage":"","language":null,"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/stulzq.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":"2018-10-11T05:48:31.000Z","updated_at":"2024-08-25T22:48:44.000Z","dependencies_parsed_at":"2023-03-09T13:00:39.089Z","dependency_job_id":null,"html_url":"https://github.com/stulzq/MonitoringSystem","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stulzq%2FMonitoringSystem","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stulzq%2FMonitoringSystem/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stulzq%2FMonitoringSystem/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stulzq%2FMonitoringSystem/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/stulzq","download_url":"https://codeload.github.com/stulzq/MonitoringSystem/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":252334531,"owners_count":21731419,"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":["grafana","monitoring","prometheus"],"created_at":"2024-11-13T04:52:43.702Z","updated_at":"2025-05-04T12:31:38.793Z","avatar_url":"https://github.com/stulzq.png","language":null,"funding_links":[],"categories":["miscellaneous"],"sub_categories":[],"readme":"# Prometheus + Grafana 搭建可视化监控系统\n\n## 一.Grafana\n\n### 1.安装\n\nUbantu:\n\n````shell\ncurl https://raw.githubusercontent.com/stulzq/MonitoringSystem/master/grafana/install-ubantu-5.3.0-x86-64|sh\n````\n\n其他系统：http://docs.grafana.org/installation/\n\n## 2.操作\n\n````shell\nsystemctl start grafana-server #启动服务\nsystemctl stop grafana-server #停止服务\nsystemctl restart grafana-server #重启服务\nsystemctl status grafana-server #查看服务\n````\n\n### 3.配置\n\n编辑配置文件\n\n````shell\nvim /etc/grafana/grafana.ini\n````\n\n修改 监听地址为你需要的，默认为 `localhost`\n\n![1539238089009](assets/1539238089009.png)\n\n重启服务：\n\n````shell\nsystemctl restart grafana-server\n````\n\n### 4.访问\n\n输入你配置的地址访问，默认登录用户名密码都是 `admin`\n\n![1539238152788](assets/1539238152788.png)\n\n## 二.Prometheus\n\n### 1.安装\n\n使用 root 用户，或者具有 root 权限的用户执行以下命令：\n\n````shell\ncurl https://raw.githubusercontent.com/stulzq/MonitoringSystem/master/prometheus/install-2.4.3-linux-amd64|sh\n````\n\n官方：https://prometheus.io/download/\n\n### 2.访问\n\n在浏览器输入 `http://\u003cip\u003e:9090` 即可访问。默认有一个监控自己的 job\n\n![1539355374376](assets/1539355374376.png)\n\n### 3.操作\n\n````shell\nsystemctl start promoetheus #启动服务\nsystemctl stop promoetheus #停止服务\nsystemctl restart promoetheus #重启服务\nsystemctl status promoetheus #查看服务\n````\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fstulzq%2FMonitoringSystem","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fstulzq%2FMonitoringSystem","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fstulzq%2FMonitoringSystem/lists"}