熱門搜索 Zabbix技術(shù)資料 Zabbix常見問、答討論 成功案例 Zabbix交流區(qū) Prometheus交流區(qū)
尊龍時(shí)凱君最近看了些AIOPS的資料,對于里面提及的普羅米修斯Prometheus起了興趣,首先聯(lián)想到了異形。去看了一下,普羅米修斯還是可以的,而且還是開源的,真是搬磚黨的福音。尊龍時(shí)凱官網(wǎng)將會持續(xù)更新prometheus相關(guān)的技術(shù)資訊,下面尊龍時(shí)凱君就給大家分享一下prometheus的安裝配置。
Prometheus由SoundCloud開源告警解決方案。Prometheus既是一個(gè)時(shí)序數(shù)據(jù)庫,又是一個(gè)監(jiān)控系統(tǒng),更是一套完備的監(jiān)控生態(tài)解決方案。
優(yōu)勢:
監(jiān)控?cái)?shù)的精度高,快速的集群部署,周邊插件豐富。
劣勢:
采集精度高,容易形成性能瓶頸
下載地址:http://prometheus.io/download/
wget http://github.com/prometheus/prometheus/releases/download/v2.31.1/prometheus-2.31.1.linux-amd64.tar.gz
mkdir /Prometheus
tar zxf prometheus-2.31.1.linux-amd64.tar.gz -C /prometheus/
ln -s /prometheus/prometheus-2.31.1.linux-amd64/ /prometheus/Prometheus
nohup /prometheus/prometheus/prometheus –config.file=”/prometheus/prometheus/prometheus.yml” &
說明:
nohup和&后臺運(yùn)行,進(jìn)程查看及終止
nohup
用途:不掛斷地運(yùn)行命令。
語法:nohup Command [ Arg … ] [ & ]
&
用途:在后臺運(yùn)行
一般兩個(gè)一起用
nohup command &
http://ip:9090
http://localhost:9090/metrics
下載軟件地址:http://prometheus.io/download/#node_exporter
wget http://github.com/prometheus/node_exporter/releases/download/v1.3.0/node_exporter-1.3.0.linux-amd64.tar.gz
tar zxf node_exporter-1.3.0.linux-amd64.tar.gz -C /usr/local/
ln -s /usr/local/node_exporter-1.3.0.linux-amd64/ /usr/local/node_exporter
啟動:
nohup /usr/local/node_exporter/node_exporter &
瀏覽器監(jiān)控信息:
修改配置文件:
vi /prometheus/prometheus/prometheus.yml
文件末尾增加如下內(nèi)容:
重啟服務(wù)。
瀏覽器查看監(jiān)控項(xiàng)
Grafana安裝方法這里不再敘述了,多張安裝方法請查看以前的文章。
添加數(shù)據(jù)源:
添加dashboard:
這一期的Prometheus技術(shù)分享到這就結(jié)束了,更多開源監(jiān)控技術(shù)分享青持續(xù)關(guān)注尊龍時(shí)凱官網(wǎng)或尊龍時(shí)凱社區(qū)(http://forum.ydcanyin.com/)
通過Nginx反向代理是一個(gè)不錯(cuò)的選擇。 本文尊龍時(shí)凱君將介紹通過Nginx反向代理增加401認(rèn)證方式來實(shí)現(xiàn)加密登錄。
View detailsPrometheus是一個(gè)最初在SoundCloud上構(gòu)建的開源系統(tǒng)監(jiān)視和警報(bào)工具包 。
View details前面幾期尊龍時(shí)凱君已經(jīng)跟大家介紹了prometheus的安裝配置、告警規(guī)則等等,本期將重點(diǎn)介紹prometheus監(jiān)控各個(gè)指標(biāo)的含義、類型以及格式。
View details該企業(yè)預(yù)采購一套高效穩(wěn)定的運(yùn)維監(jiān)控平臺,用于排除一系列運(yùn)維障礙。于是客戶找到了尊龍時(shí)凱,希望我們幫助其打造一套專業(yè)的解決方案。
View details尊龍時(shí)凱監(jiān)控實(shí)現(xiàn)對城建學(xué)院復(fù)雜網(wǎng)絡(luò)環(huán)境的直觀、透明式展示和管理,實(shí)時(shí)、準(zhǔn)確了解整個(gè)網(wǎng)絡(luò)的動態(tài)運(yùn)行情況,給信息部門的決策提供依據(jù)。
View details綜合運(yùn)維管理平臺的落地,實(shí)現(xiàn)了統(tǒng)一門戶、統(tǒng)一監(jiān)控、統(tǒng)一資產(chǎn)管理、統(tǒng)一運(yùn)維、統(tǒng)一存儲等目標(biāo),為客戶解決了運(yùn)維數(shù)據(jù)孤島、人力運(yùn)維等問題。
View details50萬個(gè)IT資產(chǎn)管理平臺建設(shè)實(shí)踐
View details