Closed
Description
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:
- All files, types and functions are named as
kernel xxx
. - Translator is not configurable.
We should refactor the code to make it easier and more intuitive to extend kernel monitor:
- Change
kernelmonitor
tologmonitor
. 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
Labels
No labels