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

简介: 五分钟带你玩转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 下载自己需要的面板


相关文章
|
7月前
|
Prometheus 监控 Cloud Native
如何使用 Prometheus 和 Grafana 监控 Linux 进程?
如何使用 Prometheus 和 Grafana 监控 Linux 进程?
370 0
如何使用 Prometheus 和 Grafana 监控 Linux 进程?
|
3月前
|
Prometheus Cloud Native Linux
Linux下安装prometheus & grafana
Linux下安装prometheus & grafana
81 0
|
4月前
|
Prometheus 监控 Cloud Native
Linux|centos7 Prometheus的自动服务发现 一(文件发现机制)
Linux|centos7 Prometheus的自动服务发现 一(文件发现机制)
54 0
|
4月前
|
Prometheus 监控 Cloud Native
Linux|centos二进制方式安装系统和网络监控神器prometheus+grafana(装逼神器它来了)(基础篇 一)
Linux|centos二进制方式安装系统和网络监控神器prometheus+grafana(装逼神器它来了)(基础篇 一)
70 0
|
8月前
|
Prometheus Cloud Native Linux
Prometheus(二)之Node Exporter采集Linux主机数据
Prometheus(二)之Node Exporter采集Linux主机数据
164 0
|
8月前
|
Prometheus 监控 Cloud Native
在Linux系统部署prometheus监控(2) --配置规则
在Linux系统部署prometheus监控(2) --配置规则
|
8月前
|
Prometheus 监控 Cloud Native
在Linux系统部署prometheus监控
在Linux系统部署prometheus监控
QGS
|
监控
(linux-x86)Prometheus-2.30.0+Grafana-7.2.0监控Oracle11g
记(linux-x86)Prometheus-2.30.0+Grafana-7.2.0监控Oracle11g
QGS
407 0
(linux-x86)Prometheus-2.30.0+Grafana-7.2.0监控Oracle11g
QGS
|
Prometheus 监控 Cloud Native
(linux-x86-arm64)麒麟V10安装openjdk+Grafana-7.2.0+Prometheus-2.16.0
记(linux-x86-arm64)麒麟V10安装openjdk+Grafana-7.2.0+Prometheus-2.16.0
QGS
762 0
(linux-x86-arm64)麒麟V10安装openjdk+Grafana-7.2.0+Prometheus-2.16.0
|
Prometheus 监控 Cloud Native
prometheus监控linux系统-node_exporter
prometheus监控linux系统-node_exporter
194 0