欧美bbbwbbbw肥妇,免费乱码人妻系列日韩,一级黄片

Prometheus和NodeExporter安裝監(jiān)控?cái)?shù)據(jù)說(shuō)明

 更新時(shí)間:2022年07月15日 16:09:11   作者:LiberHome  
這篇文章主要為大家介紹了Prometheus和node?exporter安裝監(jiān)控?cái)?shù)據(jù)說(shuō)明,有需要的朋友可以借鑒參考下,希望能夠有所幫助,祝大家多多進(jìn)步,早日升職加薪

在mac下載安裝prometheus

mac下安裝Node Exporter

(NodeExporter是Prometheus提供的一個(gè)可以采集到主機(jī)信息的應(yīng)用程序,它能采集到機(jī)器的 CPU、內(nèi)存、磁盤(pán)等信息)

cd到目標(biāo)目錄,然后用命令下載二進(jìn)制包

curl -OL https://github.com/prometheus/node_exporter/releases/download/v1.3.1/node_exporter-1.3.1.darwin-amd64.tar.gz

解壓這個(gè)二進(jìn)制包

tar -xzf node_exporter-1.3.1.darwin-amd64.tar.gz

進(jìn)入&運(yùn)行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

運(yùn)行

cd ...
cd /usr/local/bin
./node_exporter

訪問(wèn)http://localhost:9100/看到

點(diǎn)擊http://localhost:9100/metrics進(jìn)去可以看到

# 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

數(shù)據(jù)說(shuō)明

  • HELP 解釋當(dāng)前指標(biāo)的含義
  • TYPE 說(shuō)明當(dāng)前指標(biāo)的數(shù)據(jù)類型
  • node_cpu的注釋表明當(dāng)前指標(biāo)是cpu0上idle進(jìn)程占用CPU的總時(shí)間
  • CPU占用時(shí)間是一個(gè)只增不減的度量指標(biāo),從類型中也可以看出node_cpu的數(shù)據(jù)類型是計(jì)數(shù)器(counter)
  • node_load1 該指標(biāo)反映了當(dāng)前主機(jī)在最近一分鐘以內(nèi)的負(fù)載情況 指標(biāo)類型為儀表盤(pán)(gauge)

參考文檔 https://yunlzheng.gitbook.io/prometheus-book/

以上就是Prometheus和node exporter安裝監(jiān)控?cái)?shù)據(jù)說(shuō)明的詳細(xì)內(nèi)容,更多關(guān)于Prometheus node exporter安裝監(jiān)控的資料請(qǐng)關(guān)注腳本之家其它相關(guān)文章!

相關(guān)文章

最新評(píng)論