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

Fix docker stats configuration #236

Merged
merged 1 commit into from
Jun 12, 2024
Merged

Fix docker stats configuration #236

merged 1 commit into from
Jun 12, 2024

Conversation

0xtter
Copy link

@0xtter 0xtter commented Jun 11, 2024

The previous command for the Docker artifact configuration Display a live stream of resource usage statistics. :

  -
    description: Display a live stream of resource usage statistics.
    supported_os: [linux]
    collector: command
    foreach: docker container ps --all | sed 1d | awk '{print $1}'
    command: docker stats %line%
    output_file: docker_stats_%line%.txt

Was causing the collection tool to *freeze (Command docker stats %line% opens a stream that runs indefinitely.)

Fixed by disabling stream:

  -
    description: Display a live stream of resource usage statistics.
    supported_os: [linux]
    collector: command
    foreach: docker container ps --all | sed 1d | awk '{print $1}'
    command: docker stats --all --no-stream --no-trunc %line%
    output_file: docker_stats_%line%.txt

Causing process to "freeze" during collection
@tclahr tclahr merged commit 9aac79e into tclahr:develop Jun 12, 2024
1 check passed
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