File tree Expand file tree Collapse file tree 5 files changed +86
-1
lines changed
Expand file tree Collapse file tree 5 files changed +86
-1
lines changed Original file line number Diff line number Diff line change 108108- [ GoAccess 安装和配置] ( markdown-file/GoAccess-Install-And-Settings.md )
109109- [ Portainer 安装和配置] ( markdown-file/Portainer-Install-And-Settings.md )
110110- [ Influxdb 安装和配置] ( markdown-file/Influxdb-Install-And-Settings.md )
111+ - [ Prometheus 安装和配置] ( markdown-file/Prometheus-Install-And-Settings.md )
111112- [ Grafana 安装和配置] ( markdown-file/Grafana-Install-And-Settings.md )
112113- [ Ansible 安装和配置] ( markdown-file/Ansible-Install-And-Settings.md )
113114- [ Wormhole + Flink 安装和配置] ( markdown-file/Wormhole-Install-And-Settings.md )
Original file line number Diff line number Diff line change 8888* [ GoAccess 安装和配置] ( markdown-file/GoAccess-Install-And-Settings.md )
8989* [ Portainer 安装和配置] ( markdown-file/Portainer-Install-And-Settings.md )
9090* [ Influxdb 安装和配置] ( markdown-file/Influxdb-Install-And-Settings.md )
91+ * [ Prometheus 安装和配置] ( markdown-file/Prometheus-Install-And-Settings.md )
9192* [ Grafana 安装和配置] ( markdown-file/Grafana-Install-And-Settings.md )
9293* [ Ansible 安装和配置] ( markdown-file/Ansible-Install-And-Settings.md )
9394* [ Wormhole + Flink 安装和配置] ( markdown-file/Wormhole-Install-And-Settings.md )
Original file line number Diff line number Diff line change 8585- [ GoAccess 安装和配置] ( markdown-file/GoAccess-Install-And-Settings.md )
8686- [ Portainer 安装和配置] ( markdown-file/Portainer-Install-And-Settings.md )
8787- [ Influxdb 安装和配置] ( markdown-file/Influxdb-Install-And-Settings.md )
88+ - [ Prometheus 安装和配置] ( markdown-file/Prometheus-Install-And-Settings.md )
8889- [ Grafana 安装和配置] ( markdown-file/Grafana-Install-And-Settings.md )
8990- [ Ansible 安装和配置] ( markdown-file/Ansible-Install-And-Settings.md )
9091- [ Wormhole + Flink 安装和配置] ( markdown-file/Wormhole-Install-And-Settings.md )
Original file line number Diff line number Diff line change @@ -88,7 +88,8 @@ sudo systemctl status grafana-server
8888
8989- dashboar仓库地址:< https://grafana.com/dashboards >
9090- 本地可以通过输入 dashboard id 导入别人模板
91-
91+ - 打开:< http://192.168.0.105:3000/dashboard/import >
92+ - 输入对应的 id,点击 Load 即可
9293
9394----------------------------------------------------------------------------------------------
9495
Original file line number Diff line number Diff line change 1+ # Prometheus 安装和配置
2+
3+ ## Prometheus Docker 安装
4+
5+ - 官网:< https://prometheus.io/ >
6+ - 这里以 Spring Boot Metrics 为收集信息
7+ - 创建配置文件:/Users/gitnavi/docker_data/prometheus/config/prometheus.yml
8+ - 在 scrape_configs 位置下增加我们自己应用的路径信息
9+
10+ ```
11+ # my global config
12+ global:
13+ scrape_interval: 15s # Set the scrape interval to every 15 seconds. Default is every 1 minute.
14+ evaluation_interval: 15s # Evaluate rules every 15 seconds. The default is every 1 minute.
15+ # scrape_timeout is set to the global default (10s).
16+
17+ # Alertmanager configuration
18+ alerting:
19+ alertmanagers:
20+ - static_configs:
21+ - targets:
22+ # - alertmanager:9093
23+
24+ # Load rules once and periodically evaluate them according to the global 'evaluation_interval'.
25+ rule_files:
26+ # - "first_rules.yml"
27+ # - "second_rules.yml"
28+
29+ # A scrape configuration containing exactly one endpoint to scrape:
30+ # Here it's Prometheus itself.
31+ scrape_configs:
32+ - job_name: 'springboot'
33+ metrics_path: '/tkey-actuator/actuator/prometheus'
34+ static_configs:
35+ - targets: ['192.168.2.225:8811']
36+ ```
37+
38+ - 启动
39+
40+ ```
41+ docker run -d --name prometheus -p 9091:9090 \
42+ -v /Users/gitnavi/docker_data/prometheus/config/prometheus.yml:/etc/prometheus/prometheus.yml \
43+ prom/prometheus
44+ ```
45+
46+ - 然后配置 Grafana,使用这个 dashboard:< https://grafana.com/dashboards/10280 >
47+
48+
49+ ----------------------------------------------------------------------------------------------
50+
51+ ## 配置
52+
53+
54+ ### 微服务下的多服务收集
55+
56+ - < https://blog.csdn.net/zhuyu19911016520/article/details/88411371 >
57+
58+
59+ ### 告警
60+
61+ - < https://blog.csdn.net/zhuyu19911016520/article/details/88627004 >
62+ - < https://www.jianshu.com/p/e59cfd15612e >
63+
64+ ----------------------------------------------------------------------------------------------
65+
66+
67+
68+ ----------------------------------------------------------------------------------------------
69+
70+
71+ ## 其他资料
72+
73+ - <>
74+ - <>
75+ - <>
76+ - <>
77+ - <>
78+ - <>
79+ - <>
80+ - <>
81+
You can’t perform that action at this time.
0 commit comments