相關搭建文章:
現通過docker啟動prometheus 的時候,需要動態載入新的target,啟動的時候需要新增乙個配置項
--web.enable-lifecycle
完整的啟動命令:
docker run -d -p 9090:9090 -v /opt/prometheus/prometheus.yml:/etc/prometheus/prometheus.yml prom/prometheus --config.file=/etc/prometheus/prometheus.yml --web.enable-lifecycle
然後通過http介面重新整理熱更新配置檔案
curl -x post
Prometheus動態配置目標
prometheus動態配置目標 金慶的專欄 2018.4 最簡單的配置是靜態目標 scrape configs job name prometheus static configs targets localhost 9090 localhost 9100 labels group prometh...
Prometheus Targets動態配置
prometheus的配置通過配置檔案實現,每個配置檔案對應乙個prometheus server。生產環境部署時,prometheus server會部署多個例項,手工修改配置存在諸多不便。常見場景如下 1 為了實現高可用,prometheus server通常部署多個例項。2 聯盟方式部署pro...
config server bus動態更新配置
config server用來搭建配置中心,而配置資訊一般使用gitlab倉庫來儲存,這樣在你的配置發生改變時,不需要從新打包,而如果使用native的試,則需要從新打乙個config server的jar包。當你的服務的配置資訊發生改變時,一般來說需要從新重啟你的服務,配置資訊才能生效,這對於我們...