启动时在命令中增加下列参数,需保证目录存在且有权限读写
–storage.tsdb.path=”/mnt/prometheus/”
完整命令如下:
./prometheus –storage.tsdb.path=”/mnt/prometheus/” &
启动时在命令中增加下列参数,需保证目录存在且有权限读写
–storage.tsdb.path=”/mnt/prometheus/”
完整命令如下:
./prometheus –storage.tsdb.path=”/mnt/prometheus/” &