五分钟带你玩转prometheus(七)监控linux

本文涉及的产品
可观测监控 Prometheus 版,每月50GB免费额度
简介: 五分钟带你玩转prometheus(七)监控linux


1.下载

node-exporter_rev17 (展示面板)

链接:https://pan.baidu.com/s/1d1Aogy6PkFu2wkW-ArsXsw 

提取码:0ajw

node-exporter

链接:https://pan.baidu.com/s/1o3y2ciTqEszDByokfMU_Xw 

提取码:wf1x

2.配置被监控服务器

因为需要监控linux服务器 所以 需要在被监控的linux必须安装node-exporter

解压即可

node-exporter默认端口为9100

tar -xvf node_exporter-0.17.0.linux-amd64.tar.gz -C /usr/local/

然后设置后台启动

1. cd /usr/local/node_exporter-0.17.0.linux-amd64
2. nohup ./node_exporter

3.设置prometheus

进入/usr/local/prometheus-2.17.1.linux-amd64/prometheus.yml

修改prometheus.yml 红框部分为添加

image.png

  - job_name: 'linux'
    static_configs:
    - targets: ['localhost:9100']
      labels:
        instance: linux

4.配置grafana

配置数据源 也就是prometheus地址

image.png

image.png

这里填写你prometheus地址(注意不是node-exporter的地址) 点击save后 如果失败会有提示 检查 9100端口是否起来了

然后配置显示模板面板

image.png

image.png

导入上面下载的可视化界面模板

image.png

image.png

如果出现以下显示 则安装成功

image.png

也可以去https://grafana.com/grafana/dashboards 下载自己需要的面板


相关实践学习
容器服务Serverless版ACK Serverless 快速入门:在线魔方应用部署和监控
通过本实验,您将了解到容器服务Serverless版ACK Serverless 的基本产品能力,即可以实现快速部署一个在线魔方应用,并借助阿里云容器服务成熟的产品生态,实现在线应用的企业级监控,提升应用稳定性。
相关文章
|
2月前
|
Prometheus 监控 Cloud Native
Prometheus+Grafana监控Linux主机
通过本文的步骤,我们成功地在 Linux 主机上使用 Prometheus 和 Grafana 进行了监控配置。具体包括安装 Prometheus 和 Node Exporter,配置 Grafana 数据源,并导入预设的仪表盘来展示监控数据。通过这种方式,可以轻松实现对 Linux 主机的系统指标监控,帮助及时发现和处理潜在问题。
233 7
|
2月前
|
Prometheus 运维 监控
Prometheus+Grafana+NodeExporter:构建出色的Linux监控解决方案,让你的运维更轻松
本文介绍如何使用 Prometheus + Grafana + Node Exporter 搭建 Linux 主机监控系统。Prometheus 负责收集和存储指标数据,Grafana 用于可视化展示,Node Exporter 则采集主机的性能数据。通过 Docker 容器化部署,简化安装配置过程。完成安装后,配置 Prometheus 抓取节点数据,并在 Grafana 中添加数据源及导入仪表盘模板,实现对 Linux 主机的全面监控。整个过程简单易行,帮助运维人员轻松掌握系统状态。
330 3
|
6月前
|
Prometheus 监控 Cloud Native
在Linux中,如何使用Grafana和Prometheus进行网络监控和可视化?
在Linux中,如何使用Grafana和Prometheus进行网络监控和可视化?
|
9月前
|
Prometheus 监控 Cloud Native
Linux|centos二进制方式安装系统和网络监控神器prometheus+grafana(装逼神器它来了)(基础篇 一)
Linux|centos二进制方式安装系统和网络监控神器prometheus+grafana(装逼神器它来了)(基础篇 一)
370 0
|
9月前
|
Prometheus Cloud Native Linux
Linux|错误集锦|prometheus Error on ingesting samples that are too old or are too far into the future的解决
Linux|错误集锦|prometheus Error on ingesting samples that are too old or are too far into the future的解决
619 0
Linux|错误集锦|prometheus Error on ingesting samples that are too old or are too far into the future的解决
|
9月前
|
Prometheus Cloud Native Linux
Linux下安装prometheus & grafana
Linux下安装prometheus & grafana
352 0
|
9月前
|
Prometheus 监控 Cloud Native
Linux|centos7 Prometheus的自动服务发现 一(文件发现机制)
Linux|centos7 Prometheus的自动服务发现 一(文件发现机制)
155 0
|
18天前
|
Linux
Linux系统之whereis命令的基本使用
Linux系统之whereis命令的基本使用
54 23
Linux系统之whereis命令的基本使用
|
3月前
|
Linux 网络安全 数据安全/隐私保护
Linux 超级强大的十六进制 dump 工具:XXD 命令,我教你应该如何使用!
在 Linux 系统中,xxd 命令是一个强大的十六进制 dump 工具,可以将文件或数据以十六进制和 ASCII 字符形式显示,帮助用户深入了解和分析数据。本文详细介绍了 xxd 命令的基本用法、高级功能及实际应用案例,包括查看文件内容、指定输出格式、写入文件、数据比较、数据提取、数据转换和数据加密解密等。通过掌握这些技巧,用户可以更高效地处理各种数据问题。
384 8
|
5天前
|
缓存 Ubuntu Linux
Linux中yum、rpm、apt-get、wget的区别,yum、rpm、apt-get常用命令,CentOS、Ubuntu中安装wget
通过本文,我们详细了解了 `yum`、`rpm`、`apt-get`和 `wget`的区别、常用命令以及在CentOS和Ubuntu中安装 `wget`的方法。`yum`和 `apt-get`是高层次的包管理器,分别用于RPM系和Debian系发行版,能够自动解决依赖问题;而 `rpm`是低层次的包管理工具,适合处理单个包;`wget`则是一个功能强大的下载工具,适用于各种下载任务。在实际使用中,根据系统类型和任务需求选择合适的工具,可以大大提高工作效率和系统管理的便利性。
54 25