open-im-server/prometheus.md
2023-11-13 20:18:35 +08:00

14 lines
650 B
Markdown
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

## prometheus 使用
通过docker-compose安装完Prometheusnode_exporter和grafana,默认grafana的对外端口号是3000
打开grafana
默认账户密码是admin:admin
然后配置grafana的Prometheus数据源在如下界面配置
![img.png](img.png)
![img_1.png](img_1.png)
注意ip地址和端口号是服务器局域网ip和Prometheus端口比如172.29.166.17:19090。
然后在如下页面导入dashboarddashboard的yaml在config文件中,分别为promethues-dashboard.yaml,node-exporter-dashboard.yaml
表示openimserver应用服务dashboard和node-exporterdashboard
![img_2.png](img_2.png)
![img_3.png](img_3.png)