五分钟带你玩转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 的基本产品能力,即可以实现快速部署一个在线魔方应用,并借助阿里云容器服务成熟的产品生态,实现在线应用的企业级监控,提升应用稳定性。
相关文章
|
4月前
|
Prometheus 监控 Cloud Native
Prometheus+Grafana监控Linux主机
通过本文的步骤,我们成功地在 Linux 主机上使用 Prometheus 和 Grafana 进行了监控配置。具体包括安装 Prometheus 和 Node Exporter,配置 Grafana 数据源,并导入预设的仪表盘来展示监控数据。通过这种方式,可以轻松实现对 Linux 主机的系统指标监控,帮助及时发现和处理潜在问题。
370 7
|
4月前
|
Prometheus 运维 监控
Prometheus+Grafana+NodeExporter:构建出色的Linux监控解决方案,让你的运维更轻松
本文介绍如何使用 Prometheus + Grafana + Node Exporter 搭建 Linux 主机监控系统。Prometheus 负责收集和存储指标数据,Grafana 用于可视化展示,Node Exporter 则采集主机的性能数据。通过 Docker 容器化部署,简化安装配置过程。完成安装后,配置 Prometheus 抓取节点数据,并在 Grafana 中添加数据源及导入仪表盘模板,实现对 Linux 主机的全面监控。整个过程简单易行,帮助运维人员轻松掌握系统状态。
517 3
|
8月前
|
Prometheus 监控 Cloud Native
在Linux中,如何使用Grafana和Prometheus进行网络监控和可视化?
在Linux中,如何使用Grafana和Prometheus进行网络监控和可视化?
|
11月前
|
Prometheus 监控 Cloud Native
Linux|centos二进制方式安装系统和网络监控神器prometheus+grafana(装逼神器它来了)(基础篇 一)
Linux|centos二进制方式安装系统和网络监控神器prometheus+grafana(装逼神器它来了)(基础篇 一)
445 0
|
11月前
|
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的解决
670 0
Linux|错误集锦|prometheus Error on ingesting samples that are too old or are too far into the future的解决
|
11月前
|
Prometheus Cloud Native Linux
Linux下安装prometheus & grafana
Linux下安装prometheus & grafana
423 0
|
11月前
|
Prometheus 监控 Cloud Native
Linux|centos7 Prometheus的自动服务发现 一(文件发现机制)
Linux|centos7 Prometheus的自动服务发现 一(文件发现机制)
162 0
|
Prometheus 监控 Cloud Native
如何使用 Prometheus 和 Grafana 监控 Linux 进程?
如何使用 Prometheus 和 Grafana 监控 Linux 进程?
669 0
如何使用 Prometheus 和 Grafana 监控 Linux 进程?
|
Prometheus 监控 Cloud Native
prometheus+grafana监控linux
prometheus+grafana监控linux
364 0
prometheus+grafana监控linux
|
19天前
|
Linux
linux命令详细说明以及案例
本文介绍了常用的 Linux 命令及其详细说明和示例,包括:`ls`(列出目录内容)、`cd`(更改目录)、`rm` 和 `mv`(删除与移动文件)、`grep`(搜索文本)、`cat`(显示文件内容)以及 `chmod`(更改文件权限)。每个命令均配有功能描述、选项说明及实际案例,帮助用户更好地掌握 Linux 命令的使用方法。
118 56