Skip to content

Generalize kernel monitor. #44

Closed
Closed
@Random-Liu

Description

@Random-Liu

Discussed with @apatil.

Kernel monitor was initially introduced to monitor kernel log and detect kernel issues.

However, in fact it could be extended to monitor other logs such as docker log, systemd log etc. by adding new translator. Currently it is already doable, but not very intuitive because:

  1. All files, types and functions are named as kernel xxx.
  2. Translator is not configurable.

We should refactor the code to make it easier and more intuitive to extend kernel monitor:

  • Change kernelmonitor to logmonitor. We'll only use log monitor to monitor kernel log for K8s, but it should be easy for other users to reconfigure and extend it to monitor other logs.
  • Extend the configuration to make translator and log source configurable after logwatchers: add new kmsg-based kernel log watcher #41 landed, including:
    • Make the journald log filter configurable.
    • Make the translate function configurable.

/cc @kubernetes/sig-node

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