Skip to content

Zane/rename telegraf process metrics#1655

Open
zanejohnson-azure wants to merge 4 commits intoci_prodfrom
zane/rename-telegraf-process-metrics
Open

Zane/rename telegraf process metrics#1655
zanejohnson-azure wants to merge 4 commits intoci_prodfrom
zane/rename-telegraf-process-metrics

Conversation

Give the telegraf instance that collects process metrics a distinct
process name so it can be distinguished from the main telegraf process.

- Linux: create symlink /opt/telegraf-process-metrics -> /opt/telegraf
- Windows: create symlink telegraf-process-metrics.exe -> telegraf.exe
- Both configs: add new procstat entry for telegraf-process-metrics
  while keeping the existing telegraf entry
/proc/<pid>/exe resolves symlinks, so both telegraf processes appear
as exe="telegraf". Switch to pattern-based cmdline matching:
- Linux: "telegraf --" for main, "telegraf-process-metrics" for 2nd
- Windows: "telegraf.exe --" for main, "telegraf-process-metrics" for 2nd
@zanejohnson-azure zanejohnson-azure requested a review from a team as a code owner April 22, 2026 22:19
@zanejohnson-azure
Copy link
Copy Markdown
Contributor Author

/azp run

@azure-pipelines
Copy link
Copy Markdown

Azure Pipelines successfully started running 1 pipeline(s).

Change `pattern = "fluentd"` to `exe = "fluentd"` so it only matches
the fluentd supervisor process (PID name=fluentd), not both supervisor
and worker. The ruby worker is already tracked by `exe = "ruby"`.
This fixes duplicate values showing for ruby and fluentd on the dashboard.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
@zanejohnson-azure
Copy link
Copy Markdown
Contributor Author

/azp run

@azure-pipelines
Copy link
Copy Markdown

Azure Pipelines successfully started running 1 pipeline(s).

@zanejohnson-azure
Copy link
Copy Markdown
Contributor Author

/azp run

@azure-pipelines
Copy link
Copy Markdown

Azure Pipelines successfully started running 1 pipeline(s).

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.

1 participant