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