Prometheus 使用之 node exporter
本文使用的 Prometheus 版本为 2.22.0,node exporter 版本为 1.0.1;部署在 Linux 服务器
Prometheus 是开源的监控报警系统和时序列数据库 (TSDB);node exporter 用来监控服务器CPU、内存、磁盘、I/O等信息一、node exporter
node exporter 下载地址:https://prometheus.io/download/#node_exporter,下载 node_exporter-1.0.1.linux-amd64.tar.gz
执行命令:tar -xzvf node_exporter-1.0.1.linux-amd64.tar.gz
nohup ./xx/node_exporter-1.0.1.linux-amd64/node_exporter >/dev/null 2>&1 &
`
其中 xx 为自定义目录
默认端口为 9100二、Prometheus
Prometheus 下载地址:https://prometheus.io/download/#prometheus,下载 prometheus-2.22.0.linux-amd64.tar.gz
执行命令:tar -xzvf prometheus-2.22.0.linux-amd64.tar.gz
在 prometheus.yml 文件末尾添加:
scrape_configs:
... ...
- job_name: 'node'
static_configs:
- targets: ['localhost:9100']
启动 Prometheus:
nohup /xx/prometheus-2.22.0.linux-amd64/prometheus \
--config.file=/xx/prometheus-2.22.0.linux-amd64/prometheus.yml \
--storage.tsdb.path=/xx/data/prometheus \
--storage.tsdb.retention=7d \
/dev/null 2>&1 &
其中 xx 为自定义目录
默认端口为 9090三、在 Grafana 中添加数据源与看板
3.1. 添加数据源
- 登录 Grafana,在 Configuration > Data Sources 点击 “Add data source” 按钮,选中 Prometheus
- URL 填入 http://localhost:9090,并保存
3.2. 添加看板
- 在 “+” 点击 “Import”
- 在 “Import via grafana.com” 下面的输入框,输入 8919,然后点击”Load”按钮
- 在 Dashboards 即可看到面板列表
关于 8919 的解释:
Grafana 官网有已经可以直接使用的 dashboard,地址:https://grafana.com/grafana/dashboards 输入对应的 id 即可添加
Prometheus 使用之 node exporter的更多相关文章
- Prometheus Node_exporter 之 Node Exporter
Node Exporter 1. Node Exporter Scrape Time type: GraphUnit: secondsLabel: Seconds{{collector}} - 各个收 ...
- Prometheus + Node Exporter + Grafana 监控主机运行信息
上一篇文章中讲了如何利用Prometheus和Grafana监控SpringBoot应用的JVM信息,这次就来看看如何监控 服务器运行状态,先列出用到的工具: Prometheus node_ex ...
- Prometheus exporter的Node exporter是可以独立安装,用来测试的
现在慢慢在把prometheus operator的一些概念组织完整. https://github.com/coreos/prometheus-operator/tree/master/contri ...
- Prometheus 集成 Node Exporter
文章首发于公众号<程序员果果> 地址:https://mp.weixin.qq.com/s/40ULB9UWbXVA21MxqnjBxw 简介 Prometheus 官方和一些第三方,已经 ...
- 【开源监控】Prometheus+Node Exporter+Grafana监控linux服务器
Prometheus Prometheus介绍 Prometheus新一代开源监控解决方案.github地址 Prometheus主要功能 多维 数据模型(时序由 metric 名字和 k/v 的 l ...
- [k8s]prometheus+grafana监控node和mysql(普罗/grafana均vm安装)
https://github.com/prometheus/prometheus Architecture overview Prometheus Server Prometheus Server 负 ...
- Prometheus 监控K8S Node监控
Prometheus 监控K8S Node监控 Prometheus社区提供的NodeExporter项目可以对主机的关键度量指标进行监控,通过Kubernetes的DeamonSet可以在各个主机节 ...
- Node Exporter监控指标
访问http://localhost:9100/metrics,可以看到当前node exporter获取到的当前主机的所有监控数据,如下所示: 每一个监控指标之前都会有一段类似于如下形式的信息: # ...
- node exporter
在prometheus中负责数据汇报的程序统一叫做exporter; 负责主机信息收集的node_exporter 可以利用prometheus的static_configs来拉取node_expor ...
随机推荐
- 求两个数的最大公约数&求N个数的最大公约数
一.求两个数的最大公约数 如何编程计算N个数的最大公约数(Greatest common divisor)呢?第一想法那便是两两计算,但是往往最简单的想法是不怎么靠谱的.下面用递归来解决.递归有一大好 ...
- How to refresh datasource args caller[X++]
To refresh datasource args caller, you must add override method close on form like source code belo ...
- vscode搭建c++环境
第一步:下载 Vs Code 点击链接下载Vs Code 下载版本 并安装 https://code.visualstudio.com/ 点击 Download for Windwos 安装时 如 ...
- 天啦噜!仅仅5张图,彻底搞懂Python中的深浅拷贝
Python中的深浅拷贝 在讲深浅拷贝之前,我们先重温一下 is 和==的区别. 在判断对象是否相等比较的时候我们可以用is 和 == is:比较两个对象的引用是否相同,即 它们的id 是否一样 == ...
- 索引--mysql 数据库Load data大量数据时性能因素之一
发现load data infile 插入数据时越来越慢,后来发现是因为创建表时有创建索引的动作. 把索引创建删除掉之后,导入很迅速,导入后再创建索引,效率果有提高.
- facl权限(getfacl/setfacl)
file access control list:文件访问控制列表 查看facl: [root@localhost test]# getfacl hei # file: hei # owner: ro ...
- JS中 `=+` 是什么?
JS中 =+ 是什么? 依然是赋值 =是赋值,+代表后面的数字为正数,同理=-代表后面的数字为负数 用处 相当于告诉编译器,即将赋值的数值类型为数字类型,不要把数字当作字符串去拼接 示例 functi ...
- Dance Dance Revolution
今天我们来讲 Dance Dance Revolution这题 本题原网址 注意本题为多组输入输出,直到输入单个零而止(题面有点小问题) 很明显,此题为一道动态规划题(请不要妄想用贪心算法过这题,尽管 ...
- 我要进大厂之大数据MapReduce知识点(1)
01 我们一起学大数据 老刘今天分享的是大数据Hadoop框架中的分布式计算MapReduce模块,MapReduce知识点有很多,大家需要耐心看,用心记,这次先分享出MapReduce的第一部分.老 ...
- MathType总结编辑括号的类型(中)
MathType中的符号模板多种多样,能够满足各类用户的使用需求.即使是一些不常用的符号也有相应的模板,因为在工作学习中我们都需要他们,只是有的用的多有的用的少而已,下面我们就一起来看看公式编辑器编辑 ...