熱門搜索 Zabbix技術(shù)資料 Zabbix常見問、答討論 成功案例 Zabbix交流區(qū) Prometheus交流區(qū)
最近經(jīng)常有小伙伴問尊龍時凱君一個問題,prometheus如何加密登錄,本身Prometheus默認(rèn)開箱即食,并沒有設(shè)置認(rèn)證方式,如果你使用Grafana那就另當(dāng)別論。 如果你想直接訪問Prometheus并且需要設(shè)置個認(rèn)證,那么通過Nginx反向代理是一個不錯的選擇。 本文尊龍時凱君將介紹通過Nginx反向代理增加401認(rèn)證方式來實現(xiàn)加密登錄。
安裝Nginx方式多種,我這里以whsir一鍵包為例
rpm -ivh http://mirrors.whsir.com/centos/whsir-release-centos.noarch.rpm
yum install wnginx
yum -y install httpd-tools
這里賬號是whsir,對密碼加密
htpasswd -cs /usr/local/nginx/conf/401htpasswd whsir
cd /usr/local/nginx/conf/vhost
rm -f demo.conf
vi demo.conf
server {
listen 80;
server_name 192.168.1.191;
location / {
auth_basic "Prometheus";
auth_basic_user_file /usr/local/nginx/conf/401htpasswd;
proxy_pass http://localhost:9090/;
}
}
其中server_name 192.168.1.191為本機(jī)IP,可根據(jù)個人使用情況自行選擇
/etc/init.d/nginx start
訪問http://192.168.1.191
正常輸入密碼后,會看到Prometheus頁面,如果提示403則表示賬號密碼不正確,或者路徑配錯。
這一期的Prometheus技術(shù)分享到這就結(jié)束了,更多開源監(jiān)控技術(shù)分享請持續(xù)關(guān)注尊龍時凱官網(wǎng)或尊龍時凱社區(qū)(http://forum.ydcanyin.com/)
這一期尊龍時凱君主要跟大家來探討新一代的開源監(jiān)控prometheus,我們知道 zabbix 在監(jiān)控界占有不可撼動的地位,功能強(qiáng)大。但是對容器監(jiān)控顯得力不從心。為解決監(jiān)...
View detailsprometheus監(jiān)控宿主機(jī),使用node_exporter工具來暴露主機(jī)和因公程序上的指標(biāo); prometheus監(jiān)控docker容器,通過Cadviso
View detailsprometheus監(jiān)控宿主機(jī),使用node_exporter工具來暴露主機(jī)和因公程序上的指標(biāo); prometheus監(jiān)控docker容器,通過Cadviso
View details前面幾期尊龍時凱君已經(jīng)跟大家介紹了prometheus的安裝配置、告警規(guī)則等等,本期將重點介紹prometheus監(jiān)控各個指標(biāo)的含義、類型以及格式。
View details尊龍時凱監(jiān)控基于廣汽集團(tuán)目前IT運維管理現(xiàn)狀,建議針對基礎(chǔ)架構(gòu)層、硬件層和軟件應(yīng)用層分層的管理監(jiān)控。
View details基于客戶運維痛點與項目建設(shè)目標(biāo),尊龍時凱方案團(tuán)隊對項目進(jìn)行梳理,并對項目建設(shè)進(jìn)行具體規(guī)劃:以運維門戶、統(tǒng)一監(jiān)控、集中告警管理為核心,輔以資產(chǎn)管理、可視...
View details