目录在Mac下载安装prometheusmac下安装node Exporter数据说明在mac下载安装prometheus 在https://prometheus.io/downlo
(NodeExporter是Prometheus提供的一个可以采集到主机信息的应用程序,它能采集到机器的 CPU、内存、磁盘等信息)
cd到目标目录,然后用命令下载二进制包
curl -OL Https://GitHub.com/prometheus/node_exporter/releases/download/v1.3.1/node_exporter-1.3.1.darwin-amd64.tar.gz
解压这个二进制包
tar -xzf node_exporter-1.3.1.darwin-amd64.tar.gz
进入&运行node exporter
cd node_exporter-1.3.1.darwin-amd64
cd ..
cp node_exporter-1.3.1.darwin-amd64/node_exporter /usr/local/bin/node_exporter
运行
cd ...
cd /usr/local/bin
./node_exporter
访问http://localhost:9100/看到
点击http://localhost:9100/metrics进去可以看到
# HELP node_cpu Seconds the cpus spent in each mode.
# TYPE node_cpu counter
node_cpu{cpu="cpu0",mode="idle"} 362812.7890625
# HELP node_load1 1m load average.
# TYPE node_load1 gauge
node_load1 3.0703125
参考文档 https://yunlzheng.gitbook.io/prometheus-book/
以上就是Prometheus和node exporter安装监控数据说明的详细内容,更多关于Prometheus node exporter安装监控的资料请关注编程网其它相关文章!
--结束END--
本文标题: Prometheus和NodeExporter安装监控数据说明
本文链接: https://www.lsjlt.com/news/164360.html(转载时请注明来源链接)
有问题或投稿请发送至: 邮箱/279061341@qq.com QQ/279061341
下载Word文档到电脑,方便收藏和打印~
2024-03-01
2024-03-01
2024-02-29
2024-02-29
2024-02-29
2024-02-29
2024-02-29
2024-02-29
2024-02-29
2024-02-29
回答
回答
回答
回答
回答
回答
回答
回答
回答
回答
0