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 108
108
- [ GoAccess 安装和配置] ( markdown-file/GoAccess-Install-And-Settings.md )
109
109
- [ Portainer 安装和配置] ( markdown-file/Portainer-Install-And-Settings.md )
110
110
- [ Influxdb 安装和配置] ( markdown-file/Influxdb-Install-And-Settings.md )
111
+ - [ Prometheus 安装和配置] ( markdown-file/Prometheus-Install-And-Settings.md )
111
112
- [ Grafana 安装和配置] ( markdown-file/Grafana-Install-And-Settings.md )
112
113
- [ Ansible 安装和配置] ( markdown-file/Ansible-Install-And-Settings.md )
113
114
- [ Wormhole + Flink 安装和配置] ( markdown-file/Wormhole-Install-And-Settings.md )
Original file line number Diff line number Diff line change 88
88
* [ GoAccess 安装和配置] ( markdown-file/GoAccess-Install-And-Settings.md )
89
89
* [ Portainer 安装和配置] ( markdown-file/Portainer-Install-And-Settings.md )
90
90
* [ Influxdb 安装和配置] ( markdown-file/Influxdb-Install-And-Settings.md )
91
+ * [ Prometheus 安装和配置] ( markdown-file/Prometheus-Install-And-Settings.md )
91
92
* [ Grafana 安装和配置] ( markdown-file/Grafana-Install-And-Settings.md )
92
93
* [ Ansible 安装和配置] ( markdown-file/Ansible-Install-And-Settings.md )
93
94
* [ Wormhole + Flink 安装和配置] ( markdown-file/Wormhole-Install-And-Settings.md )
Original file line number Diff line number Diff line change 85
85
- [ GoAccess 安装和配置] ( markdown-file/GoAccess-Install-And-Settings.md )
86
86
- [ Portainer 安装和配置] ( markdown-file/Portainer-Install-And-Settings.md )
87
87
- [ Influxdb 安装和配置] ( markdown-file/Influxdb-Install-And-Settings.md )
88
+ - [ Prometheus 安装和配置] ( markdown-file/Prometheus-Install-And-Settings.md )
88
89
- [ Grafana 安装和配置] ( markdown-file/Grafana-Install-And-Settings.md )
89
90
- [ Ansible 安装和配置] ( markdown-file/Ansible-Install-And-Settings.md )
90
91
- [ 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
88
88
89
89
- dashboar仓库地址:< https://grafana.com/dashboards >
90
90
- 本地可以通过输入 dashboard id 导入别人模板
91
-
91
+ - 打开:< http://192.168.0.105:3000/dashboard/import >
92
+ - 输入对应的 id,点击 Load 即可
92
93
93
94
----------------------------------------------------------------------------------------------
94
95
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