Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update otelcol-contrib.service #748

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

KieranP
Copy link

@KieranP KieranP commented Nov 24, 2024

Add ExecReload command to reload configs without restarting the opentelemetry process (to prevent data loss)

Possible because of open-telemetry/opentelemetry-collector#6000

Taken from https://last9.io/blog/hot-reload-for-opentelemetry-collector/

@KieranP KieranP requested a review from a team as a code owner November 24, 2024 22:25
@KieranP KieranP requested a review from fatsheep9146 November 24, 2024 22:25
@@ -5,6 +5,7 @@ After=network.target
[Service]
EnvironmentFile=/etc/otelcol-contrib/otelcol-contrib.conf
ExecStart=/usr/bin/otelcol-contrib $OTELCOL_OPTIONS
ExecReload=/bin/kill -HUP $MAINPID
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

please also add this to otelcol and otelcol-otlp

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@mowies Done :-)

Add ExecReload command to reload configs without restarting the opentelemetry process (to prevent data loss)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants