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 upPrometheus exit when systemd restart systemd-journald #5171
Comments
This comment has been minimized.
This comment has been minimized.
|
Looking at a similar issue reported for node_exporter, it doesn't seem easy to fix properly. Even if we were to catch and ignore |
This comment has been minimized.
This comment has been minimized.
|
Hacked quickly a Prometheus binary that catches |
This comment has been minimized.
This comment has been minimized.
|
Maybe we can write logging to file, and support logging file rotate by size or count. |
simonpasquier
added
the
not-as-easy-as-it-looks
label
Feb 21, 2019
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
eahydra commentedFeb 1, 2019
Proposal
Use case. Why is this important?
I have some Prometheus instances, but three days ago, these instances have exited.
These instances is running as Systemd Service. And use
systemctl statuscheck the status, these instances have been killed by SIGPIPE.I confirmed the systemd have bug even if
IgnoreSIGPIPE=true.And Docker has also encountered the same problem, and now Docker have code
that ignore SIGPIPE pkg/signal/trap.go#L39
Bug Report
What did you do?
Do nothing.
What did you expect to see?
Handle the SIGPIPE correctly
What did you see instead? Under which circumstances?
when systemd restart systemd-journald, the Prometheus service exited.
Environment
Centos 7, with systemd 219 (although the systemd version is old.)
System information:
the internal version but based on CentOS 7
Prometheus version:
prometheus, version 2.5.0 (branch: release/20181129-11-33, revision: 67dc912)
build user: admin@rs7h13559.et2sqa
build date: 20181129-03:34:17
go version: go1.11