Join GitHub today
GitHub is home to over 31 million developers working together to host and review code, manage projects, and build software together.
Sign upunexpected end of JSON input #4297
Comments
This comment has been minimized.
This comment has been minimized.
|
Is the file being created atomically via |
This comment has been minimized.
This comment has been minimized.
|
I know the reason. I write a program to update And I set refresh_interval to 15s in prometheus.yml |
This comment has been minimized.
This comment has been minimized.
|
@pc10201 can you close the issue in that case? |
simonpasquier
added
the
kind/question
label
Jul 10, 2018
This comment has been minimized.
This comment has been minimized.
|
@pc10201 I'm closing the issue as it looks like you got things sorted out. If this isn't the case, I recommend that you ask for help on our user mailing list. |
simonpasquier
closed this
Jul 10, 2018
This comment has been minimized.
This comment has been minimized.
sorx00
commented
Dec 17, 2018
|
@pc10201 How you fixed this problem? I have discovery service for Rancher, which rewrite job file every 30 seconds. So every time Prom try to read this file, it's putting error into log. |
This comment has been minimized.
This comment has been minimized.
currycan
commented
Jan 14, 2019
|
I met the same problem,the prometheus version is 2.4.3. |
This comment has been minimized.
This comment has been minimized.
I do not fix it.But I change my program to create a tmp file,if the file is same as before and will not override it. |
pc10201 commentedJun 21, 2018
Prometheu version=2.3.1
But /etc/prometheus/jobs/node.json file is a valid json file.I use
to check it