promethues安装部署
1、promethues官网:https://prometheus.io/download/,选择需要的版本下载
2、版本包解压
tar -zxf prometheus-2.34.0.linux-amd64.tar.gz
3、修改配置文件prometheus.yml
static_configs: - targets: ["47.108.135.30:9090"]
4、启动服务
./prometheus &
5、安装export监控主机:官网下载node_exporter-1.3.1.linux-amd64.tar.gz
6、解压后直接启动
tar -zxf node_exporter-1.3.1.linux-amd64.tar.gz
cd node_exporter-1.3.1
./node_exporter &
7、在prometheus.yml添加配置,然后重启prometheus
- job_name: 'node' static_configs: - targets: ["47.108.84.186:9100"]
8、浏览器输入:ip:9090,登录查看
9、安装grafana,grafana官网:https://grafana.com/
先下载版本:grafana-enterprise-8.4.3.linux-amd64.tar.gz
然后解压:tar -zxf grafana-enterprise-8.4.3.linux-amd64.tar.gz
10、启动服务
cd grafana-8.4.3/bin
nohup ./grafana-server web > /dev/null &
11、浏览器打开输入:ip:3000/login,默认账号密码:admin/admin
12、添加promethues数据源
注:Grafana监控模板有很多可下载适用
【推荐】国内首个AI IDE,深度理解中文开发场景,立即下载体验Trae
【推荐】编程新体验,更懂你的AI,立即体验豆包MarsCode编程助手
【推荐】抖音旗下AI助手豆包,你的智能百科全书,全免费不限次数
【推荐】轻量又高性能的 SSH 工具 IShell:AI 加持,快人一步
· winform 绘制太阳,地球,月球 运作规律
· TypeScript + Deepseek 打造卜卦网站:技术与玄学的结合
· AI 智能体引爆开源社区「GitHub 热点速览」
· 写一个简单的SQL生成工具
· Manus的开源复刻OpenManus初探