How to terminate the collector after whole file is harvested? #11648
Answered
by
dmathieu
graywolf-s1
asked this question in
Q&A
-
Given a very simple configuration file of
how can I make opentelemetry collector terminate after the whole file is harvested? This is just for a local testing, so I want to fully process that one file ( Thanks |
Beta Was this translation helpful? Give feedback.
Answered by
dmathieu
Nov 12, 2024
Replies: 1 comment 1 reply
-
The collector isn't meant to run as a one-off process. So it can't do that. |
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
dmathieu
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
The collector isn't meant to run as a one-off process. So it can't do that.
You can start the process, and send a SIGTERM signal after a few seconds, that should let the collector finish handling the file, and stop as it handles the signal.