Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Create Kubernetes Events plugin #47

Merged
merged 6 commits into from
Aug 31, 2020
Merged
Changes from 5 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
81 changes: 81 additions & 0 deletions plugins/kubernetes_events.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,81 @@
# Plugin Info
version: 0.0.1
title: Kubernetes Events
description: Kubernetes Events Parser
parameters:
namespaces:
label: Namespaces
description: An array of namespaces. Defaults to use all namespaces.
type: strings
default: []

# Set Defaults
# {{$namespaces := default [] .namespaces}}

# Pipeline Template
pipeline:
- type: k8s_event_input
labels:
plugin_id: {{ .id }}
log_type: "k8s.events"
- type: severity_parser
preset: none
parse_from: $record.reason
namespaces: {{ $namespaces }}
mapping:
info:
- Created
- SandboxChanged
- NodeAllocatableEnforced
- SuccessfulMountVolume
- SuccessfulAttachVolume
- FileSystemResizeSuccessful
- VolumeResizeSuccessful
- Starting
- NodeReady
- Pulling
- Pulled
- Started
- Killing
- NodeSchedulable
warning:
- AlreadyMountedVolume
- ContainerGCFailed
- ExceededGracePeriod
- Evicted
- FailedCreatePodSandBox
- FailedNodeAllocatableEnforcement
- FailedPostStartHook
- FailedPreStopHook
- FailedSync
- FailedValidation
- FailedKillPod
- HostPortConflict
- ImageGCFailed
- InspectFailed
- InvalidDiskCapacity
- NetworkNotReady
- Preempting
- ProbeWarning
- Rebooted
error:
- BackOff
- FailedCreatePodContainer
- FailedMountOnFilesystemMismatch
- FailedPodSandBoxStatus
- FailedScheduling
- FileSystemResizeFailed
- FreeDiskSpaceFailed
- KubeletSetupFailed
- Unhealthy
- VolumeResizeFailed
critical:
- ErrImagePull
- ErrImageNeverPull
- Failed
- FailedAttachVolume
- FailedMapVolume
- FailedMount
- NodeNotReady
- NodeNotSchedulable
output: {{ .output }}