Skip to content

cadvisor/utils/oomparser - Add constructor to (optionally) allow streaming of current+new OOMs only. #3715

@jesseward

Description

@jesseward

Summary

cadvisor/utils/oomparser currently returns an OomParser object with the underlying reader pointing to the head of /dev/kmsg. This returns all OOM events that are currently available in the kmsg buffer.

While this is desirable in certain cases, a user may wish to only subscribe to new OOM events that are occurring. The underlying reader supports a SeekEnd function that fast-forwards the offset to the end of the buffer.

This is a request to add a constructor that returns the OomParser object with the offset moved to the end of the kmsg queue.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions