首页 > 编程语言 >prometheus之node_exporter安装

prometheus之node_exporter安装

时间:2024-02-05 21:11:07浏览次数:39  
标签:node exporter tar prometheus systemctl 安装

一、简介

node_exporter用来安装到被监控的主机上,暴露被监控主机的指标数据,服务器端基于http协议调用的端口9100(默认)来获取被监控服务器信息。

二、安装部署

下载地址
https://github.com/prometheus/node_exporter/releases

1、解压安装

# tar -xvf node_exporter-*.linux-amd64.tar.gz -C /usr/local/
# mv node_exporter-0.18.1.linux-amd64/ node_exporter

2、 启动node-exporter

# nohup /usr/local/node_exporter/node_exporter &

3、加入node_exporter开机自启

cat > /etc/systemd/system/node_exporter.service << "EOF"
[Unit]
Description=node_export
Documentation=https://github.com/prometheus/node_exporter
 
[Service]
ExecStart=/usr/local/node_exporter/node_exporter
Restart=on-failure
[Install]
WantedBy=multi-user.target
EOF
# systemctl daemon-reload
# systemctl enable node_exporter
# systemctl start node_exporter
# systemctl status node_exporter 

标签:node,exporter,tar,prometheus,systemctl,安装
From: https://www.cnblogs.com/OpenSourceSite/p/18008816

相关文章

  • prometheus监控告警多个es集群
    exporter安装   分别在两个集群中的任一节点安装elasticsearch_exporter   节点1安装     nohup./elasticsearch_exporter--es.all--es.indices--es.cluster_settings--es.indices_settings--es.shards--es.snapshots--es.timeout=10s--web.list......
  • jenkins 报错The engine "node" is incompatible with this module. Expected version
     错误是由于node版本不兼容导致的,解决方案就是忽略引擎版本的检查解决方案在前端编译的时候忽略引擎版本检测sh"yarnconfigsetregistryhttps://registry.npmmirror.com/"sh"npm-v"sh"yarn-v"sh"yarnadd......
  • Windows中通过NVM安装和切换各个NodeJS版本
    1、下载NVM下载地址:https://github.com/coreybutler/nvm-windows/releases如我们下载:https://github.com/coreybutler/nvm-windows/releases/download/1.1.12/nvm-setup.exe2、安装NVM在安装前,最好将已安装的NodeJS卸载掉,避免出现不必要的问题。选择NVM安装目录,如下所示:......
  • Gitlab Prometheus 磁盘空间占用
    gitlab默认启用Prometheus,数据存储时长是15天,经观察磁盘占用较大(我这边平均每天1G)如果磁盘紧张的情况下可以修改数据保留时长,或直接关闭Prometheus监控,修改配置文件的方法如下:配置文件位置gitlab/config/gitlab.rb1、修改保留天数,下面的配置内容默认全部是注释掉的,可以去......
  • nodejs的下载安装
    8、nodejs的作用在vscode打开项目后,由于项目依附于我们的npm,我们需要将npm中的依赖下载下来,npm又依附于nodejs,故需要下载nodejs。下载node并安装:https://nodejs.org/dist/v12.14.0/nodev12.14.0-x64.msi; 9、设置npm镜像(同设置maven) ......
  • <template #default="{ node,data }">
    <template><el-dialogv-model="dialogVisible":title="title":width="width":close-on-click-modal="false":close-on-press-escape="false"@close="dialogClose"......
  • node.js安装版本管理
    一、安装nodejs(使用nvm的方式)一、nvm说明nvm主要是用来管理 nodejs 和npm版本的工具,可以用来切换不同版本的nodejs。安装nvm之前先卸载nodeWindows系统完全卸载删除Node.js1.打开cmd命令行窗口,输入npmcacheclean--force回车执行2.打开控制面板,在控制面板中把Node.j......
  • nodejs+axios调用第三方接口返回数据给前端
    nodejsaxios调用第三方接口返回数据给前端后端koalas前端vue0.内容和前后端框架本项目为前端执行时间段和航班,后端利用指定信息查询第三方航班信息接口并返回给前端。1.koajs+axiosapp.js文件中引入koa、添加初始化中间件并启动项目。1.1引入koa并添加初始化bodyPars......
  • XmlDocument 解决 Clone、CloneNode、ImportNode 等节点克隆后的标签自闭合问题
    前言:这两天在对Taurus.Mvc 做html 加载性能优化时,发现存在这个问题。具体优化的是CYQ.Data 组件的XHtmlAction 相关类。问题过程:之前XmlDocument 调用 LoadXml(xml)之后,缓存对象,再次使用时,都是重新LoadXml:XmlDocumentnewDoc=newXmlDocument();......
  • 链表中,LNode和* LinkList的理解
    typedefstructLNode{ intdata; structLNode*next;}LNode,*LinkList;这是标准链表创建法。简单的说,其中LNode和*LinkList分别是LNode的不同名字,显而易见一个是指针一个不是指针。两者等价关系如下:typedefstructLNodeLNode;//将结构体重命名为LNodetypedefs......