普羅米修斯

linux 環(huán)境下:

1、安裝go

 yum -y install go

  go version

2、安裝 prometheus

wget https://github.com/prometheus/prometheus/releases/download/v2.2.1/prometheus-2.2.1.linux-amd64.tar.gz

tar -xvf prometheus-2.2.1.linux-amd64.tar.gz

cd prometheus-2.2.1.linux-amd64

編輯配置文件: vim prometheus.yml

啟動(dòng):./prometheus --config.file=prometheus.yml

3、安裝grafana

on 171

sudo`` yum ``install`` https:/``/s3-us-west-2.amazonaws.com/grafana-releases/release/grafana-5.0.4-1.x86_64.rpm

配置文件:/etc/grafana/grafana.ini

日志:/var/log/grafana/grafana.log

p1.png

service grafana-server start

systemctl daemon-reload

systemctl start grafana-server

systemctl status grafana-server

systemctl enable grafana-server.service

yum install fontconfig

yum install freetype*

yum install urw-fonts

安裝grafana儀表盤(pán):

git clone https://github.com/percona/grafana-dashboards.git

cp -r grafana-dashboards/dashboards /var/lib/grafana/

dashboard.json
enable= true
path = /var/lib/grafana/dashboards

4、安裝node_exporter

wget https://github.com/prometheus/node_exporter/releases/download/v0.16.0-rc.2/node_exporter-0.16.0-rc.2.linux-amd64.tar.gz

tar -vxf node_exporter-0.16.0-rc.2.linux-amd64.tar.gz

cd node_exporter-0.16.0-rc.2.linux-amd64

./nodex_exporter


p2.png

5、碧油雞

component=tsdb msg="unknown series references in WAL sample

Yup, it's an upstream bug for large index merges. After the restart, you need to cleanup the /opt/prometheus/prometheus/data/*.tmp/ directories manually.

yml文件格式真惡心

6、安裝redis_exporter

wget https://github.com/oliver006/redis_exporter/releases/download/v0.15.0/redis_exporter-v0.15.0.linux-amd64.tar.gz

tar -zxvf redis_exporter-v0.15.0.linux-amd64.tar.gz

./redis_exporter -redis.addr=redis://11.4.74.44:6000,redis://11.4.74.58:6000 -redis.password=123,123

在prometheus配置文件中配置job_name

p3.png

7、集成consul

p4.png
?著作權(quán)歸作者所有,轉(zhuǎn)載或內(nèi)容合作請(qǐng)聯(lián)系作者
【社區(qū)內(nèi)容提示】社區(qū)部分內(nèi)容疑似由AI輔助生成,瀏覽時(shí)請(qǐng)結(jié)合常識(shí)與多方信息審慎甄別。
平臺(tái)聲明:文章內(nèi)容(如有圖片或視頻亦包括在內(nèi))由作者上傳并發(fā)布,文章內(nèi)容僅代表作者本人觀點(diǎn),簡(jiǎn)書(shū)系信息發(fā)布平臺(tái),僅提供信息存儲(chǔ)服務(wù)。

相關(guān)閱讀更多精彩內(nèi)容

  • 普羅米修斯是一個(gè)復(fù)雜的系統(tǒng),它有許多的組件并且集成了許多其它的系統(tǒng)。它可以被部署到各種被信任和不被信任的環(huán)境中。 ...
    show16閱讀 2,206評(píng)論 0 3
  • 聯(lián)邦允許一個(gè)普羅米修斯服務(wù)從其它的普羅米修斯服務(wù)中抓取時(shí)序數(shù)據(jù)。 使用場(chǎng)景 關(guān)于聯(lián)邦這兒有好幾種場(chǎng)景。通常,聯(lián)邦是...
    show16閱讀 1,839評(píng)論 0 0
  • 羅伊緩緩的睜開(kāi)了眼睛,他現(xiàn)在躺在一張大床上,周?chē)且黄岷?,什么都看不?jiàn),但那只是針對(duì)普通人而言。羅伊看得清一切,...
    過(guò)往的日子閱讀 503評(píng)論 0 1
  • 與《普羅米修斯》(Prometheus)相隔 5 年,最新續(xù)集《異形:圣約》(Alien: Covenant)終于...
    電影深扒客閱讀 892評(píng)論 0 0
  • —福娃 頑皮的孩子迷失了方向 清晨從門(mén)前小路出發(fā) 傍晚已辨不出是哪一條街巷 異鄉(xiāng)的天空沒(méi)有北斗星和月亮 頭...
    福娃小瓜閱讀 318評(píng)論 2 1

友情鏈接更多精彩內(nèi)容