Skip to content

collect ama-logs process metrics through telegraf#1629

Open
zanejohnson-azure wants to merge 8 commits intoci_prodfrom
zane/procstat-2nd-telegraf
Open

collect ama-logs process metrics through telegraf#1629
zanejohnson-azure wants to merge 8 commits intoci_prodfrom
zane/procstat-2nd-telegraf

Conversation

- Add procstat-telegraf.conf template (baked into image)
- Add logic in main.sh to start 2nd telegraf with HOST_PROC=/proc when
  agent_settings.procstat_monitoring.enabled=true in ConfigMap
- Add procstat_monitoring setting to container-azm-ms-agentconfig.yaml
- 2nd telegraf only runs procstat, uses /proc (container-scoped)
  while main telegraf keeps HOST_PROC=/hostfs/proc for disk/net
@zanejohnson-azure zanejohnson-azure requested a review from a team as a code owner March 31, 2026 21:26
@@ -1,2 +1,5 @@
# to merge trivy scan PR, temporarily ignore CVE-2026-24051 until a fix is available
CVE-2026-24051 No newline at end of file
CVE-2026-24051
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.

temporarily added for building image for testing

@@ -0,0 +1,139 @@
# Telegraf config for collecting process metrics inside ama-logs containers.
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.

take a conservative approach to monitor all processes owned by ama-logs because we only use this for ama-logs model clusters, so data volume is not a problem.

@@ -0,0 +1,167 @@
# Telegraf config for collecting process metrics inside ama-logs containers.
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.

same as linux, monitor all processes related to ama-logs.

Copy link
Copy Markdown
Contributor Author

@zanejohnson-azure zanejohnson-azure left a comment

Choose a reason for hiding this comment

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

comment

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