command
module
Version:
v0.0.0-...-87d2053
Opens a new window with list of versions in this module.
Published: Dec 6, 2024
License: Apache-2.0
Opens a new window with license information.
Imports: 29
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
README
¶
Eventexporter
Eventexporter filters events in a Kubernetes cluster by a custom definition and exposes them in a configurable metric.
Configuration example:
metrics:
- name: metric_1
event_matcher:
- key: InvolvedObject.Kind
expr: Pod
- key: Message
expr: .*Created container.*
labels:
node: Source.Host
- name: metric_2
event_matcher:
- key: Type
expr: Warning
- key: Reason
expr: PodOOMKilling
labels:
node: Source.Host
- name: virtuell_object
event_matcher:
- key: InvolvedObject.Kind
expr: Pod
- key: Reason
expr: FailedAttachVolume
- key: Source.Component
expr: attachdetach.*
labels:
node: Object.Spec.NodeName
- name: submatch
event_matcher:
- key: Message
expr: Volume (.*) mount failed for Instance (.*)
- key: Type
expr: Normal
labels:
volume: Message[1]
instance: Message[2]
See yaml/eventexporter.yaml for an actual configuration and deployment of eventexporter.
License
This project is licensed under the Apache2 License - see the LICENSE file for details
Documentation
¶
There is no documentation for this package.
Source Files
¶
Click to show internal directories.
Click to hide internal directories.