1)啓用數據保存時間,配置刷新
./prometheus --storage.tsdb.retention.time=180d --web.enable-admin-api --web.enable-lifecycle --config.file=prometheus.yml
2)帶端口:
./prometheus --storage.tsdb.retention.time=180d --web.enable-admin-api --web.enable-lifecycle --config.file=prometheus.yml --web.listen-address="0.0.0.0:19090"
3)熱啓動
curl -XPOST http://localhost:9090/-/reload