參考文章:https://blog.51cto.com/bigboss/2131399
按照文章中的步驟妒穴,我們到了第四大步蘑辑,安裝pgwatch2
執(zhí)行/app/pgwatch2/pgwatch2/.build_gatherer.sh腳本出現(xiàn)問題:
網(wǎng)址打不開瓜客,鏈接不到
build_gatherer.sh腳本依賴同目錄下get_dependencies.sh 腳本(該腳本內(nèi)容是下載依賴),其中里面部分github上的內(nèi)容已經(jīng)沒了,網(wǎng)址打開報(bào)錯(cuò)404.例如:
https://github.com/coreos/go-systemd/daemon
https://github.com/prometheus/client_golang/prometheus
https://github.com/samuel/go-zookeeper/zk
https://github.com/hashicorp/consul/api
這就造成pgwatch2 可執(zhí)行文件生成報(bào)錯(cuò)!
解決辦法:
直接下載我分享的Pgwatch2.exe即可(從docker方式安裝后拷貝出來的值桩,監(jiān)控?cái)?shù)據(jù)庫需要傳入相關(guān)參數(shù))