kubernetes-eventexporter

command module
v0.0.0-...-87d2053 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 6, 2024 License: Apache-2.0 Imports: 29 Imported by: 0

README

Eventexporter

Build Status Contributions License


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

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL