Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type KernelLog ¶
KernelLog is the log item returned by translator. It's very easy to extend this to support other log monitoring, such as docker log monitoring.
type Rule ¶
type Rule struct {
// Type is the type of matched kernel problem.
Type Type `json:"type"`
// Condition is the type of the condition the kernel problem triggered. Notice that
// the Condition field should be set only when the problem is permanent, or else the
// field will be ignored.
Condition string `json:"condition"`
// Reason is the short reason of the kernel problem.
Reason string `json:"reason"`
// Pattern is the regular expression to match the kernel problem in kernel log.
// Notice that the pattern must match to the end of the line.
Pattern string `json:"pattern"`
}
Rule describes how kernel monitor should analyze the kernel log.
Click to show internal directories.
Click to hide internal directories.