Skip to content

Fix metrics-sourcer crash loop by cleaning up orphaned telegraf unit - #2206

Open
Narine Mossikyan (NarineM) wants to merge 1 commit into
masterfrom
narinem-telegraf
Open

Fix metrics-sourcer crash loop by cleaning up orphaned telegraf unit#2206
Narine Mossikyan (NarineM) wants to merge 1 commit into
masterfrom
narinem-telegraf

Conversation

@NarineM

Copy link
Copy Markdown
Contributor

No description provided.

@NarineM
Narine Mossikyan (NarineM) requested a review from a team as a code owner August 28, 2026 19:46
def stop_metrics_process():

if telhandler.is_running(is_lad=False):
if telhandler.is_running(is_lad=False) or is_telegraf_service_installed():

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

maybe check if its enabled as well right?

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

@NarineM Narine Mossikyan (NarineM) Aug 29, 2026

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

metrics-sourcer is never [systemctl enabled (only restarted), so an enabled-check wouldn't gate anything — the crash loop comes from the leftover unit file + Restart=on-failure + the health-check restart, independent of enablement.

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