Error in windows10 on start of prometheus.io.

27 views
Skip to first unread message

aruns...@gmail.com

unread,
Oct 6, 2017, 1:45:19 AM10/6/17
to Prometheus Users
Hi,

   1)  I am using "prometheus-2.0.0-beta.2.windows-amd64" for my monitoring application, I am facing following error on start of prometheus from command line.
     

"ts=2017-10-06T05:29:04.2664542Z caller=compact.go:327 msg="compact blocks" blocks=[01BVR0VRF6V6SFH3XDX2PCEA1W]
ts=2017-10-06T05:29:04.3754809Z caller=db.go:283 msg="compaction failed" err="persist head block: write new tombstones file: rename store1\\01BVR2H4GAAF6XNHD4T031240K.tmp\\tombstones.tmp store1\\01BVR2H4GAAF6XNHD4T031240K.tmp\\tombstones: The process cannot access the file because it is being used by another process."
ts=2017-10-06T05:29:34.2660867Z caller=compact.go:327 msg="compact blocks" blocks=[01BVR0VRF6V6SFH3XDX2PCEA1W]
ts=2017-10-06T05:29:34.7519172Z caller=db.go:283 msg="compaction failed" err="persist head block: write new tombstones file: rename store1\\01BVR2J1STWY9RGMT5QYHTCAAA.tmp\\tombstones.tmp store1\\01BVR2J1STWY9RGMT5QYHTCAAA.tmp\\tombstones: The process cannot access the file because it is being used by another process."

 Prometheus Command i used to start prometheus  is as follows
" prometheus.exe --config.file=prometheus.yml --web.enable-lifecycle --storage.tsdb.min-block-duration=15m --storage.tsdb.path="store1/" --storage.tsdb.no-lockfile" 


2) What is the standard way to run prometheus in windows OS environment such as 
    1) run as daemon process(background)
    2) On reboot restart the prometheus as a service
    3) On prometheus restart should start with already collected data(should not get lost the old collected data).

Thank You.
 
Reply all
Reply to author
Forward
0 new messages