Skip to content

docs: Describe how the containerdebug logs are collected - #975

Open
siegfriedweber wants to merge 1 commit into
mainfrom
feat/collect-containerdebug-logs
Open

siegfriedweber wants to merge 1 commit into
mainfrom
feat/collect-containerdebug-logs

Conversation

@siegfriedweber

Copy link
Copy Markdown
Member

Description

The Output section of the containerdebug page said that the collected information goes to the shared Stackable log dir for pickup by the Vector agent, without saying how that is enabled. It has in fact not happened since containerdebug 0.2.0, which no longer reads the environment variable that the operators were setting.

This splits the section into pod logs, aggregated log files and state file, and documents the FILE_LOG_DIRECTORY, FILE_LOG_ROTATION_PERIOD and FILE_LOG_MAX_FILES variables which the operators set instead. It also explains that the events carry the container name containerdebug although no container of that name exists, which path an override has to keep, and that the file log level is independent of the log configuration of the product container. The link to containerdebug now points at the crate in operator-rs, where the tool lives.

Part of stackabletech/issues#909

Docs

Checklist

Author

  • AI review done, findings addressed

Reviewer

  • Useful comments and logging
  • Docs added or updated per the style guide

Acceptance

  • Check for release notes and docs

@siegfriedweber siegfriedweber self-assigned this Nov 4, 2026
@netlify

netlify Bot commented Nov 4, 2026 •

Copy link
Copy Markdown

✅ Deploy Preview for stackable-docs ready!

Name Link
🔨 Latest commit f29c21d
🔍 Latest deploy log https://app.netlify.com/projects/stackable-docs/deploys/6aeb21fa269827d064b8f91e
😎 Deploy Preview https://deploy-preview-975--stackable-docs.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

@NickLarsenNZ NickLarsenNZ left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

I think a few small tweaks might be needed.

The collected information is logged to the Kubernetes pod logs (readable via `kubectl logs <pod>`)
and to the xref:observability/logging.adoc#architecture[shared Stackable log dir]
(for pickup by the Vector log agent).
containerdebug writes its output to three places: the pod logs, a rotating log file for the log aggregation, and a state file with the result of the latest run.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

I assume this means STDOUT/STDERR. maybe we could say console logs. Unless Pod logs has been used in other places to mean the same thing.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

I assume...

I see it clarified below. Maybe its fine. Leaving the comment in case you have an opinion.

[CAUTION]
====
If you override `FILE_LOG_DIRECTORY`, then the directory has to stay exactly one level below `/stackable/log`, because the Vector agent takes the container name from that path segment.
A directory next to it, such as `/stackable/log/<product>`, mixes the containerdebug events into the logs of that container.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

I think this is a little hard to understand. I'm guessing it means if the user were to set FILE_LOG_DIR to the product directory, then the containerdebug logs would be mixed with the product logs.


=== State file

The collected information is additionally written as JSON to `/stackable/log/containerdebug-state.json`.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

I assume this doesn't get scraped by vector.

This branch has not been deployed

No deployments
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