Skip to content

Commit

Permalink
Merge pull request #47 from observIQ/kubernetes-events
Browse files Browse the repository at this point in the history
Create Kubernetes Events plugin
  • Loading branch information
ericwholt authored Aug 31, 2020
2 parents 70fc07e + 159ae8a commit 9418653
Showing 1 changed file with 82 additions and 0 deletions.
82 changes: 82 additions & 0 deletions plugins/kubernetes_events.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,82 @@
# 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 }}
perserve: true
mapping:
info:
- Created
- SandboxChanged
- NodeAllocatableEnforced
- SuccessfulMountVolume
- SuccessfulAttachVolume
- FileSystemResizeSuccessful
- VolumeResizeSuccessful
- Starting
- NodeReady
- Pulling
- Pulled
- Started
- Killing
- NodeSchedulable
warning:
- AlreadyMountedVolume
- BackOff
- ContainerGCFailed
- ExceededGracePeriod
- Evicted
- FailedCreatePodSandBox
- FailedNodeAllocatableEnforcement
- FailedPostStartHook
- FailedPreStopHook
- FailedSync
- FailedValidation
- FailedKillPod
- HostPortConflict
- ImageGCFailed
- InspectFailed
- InvalidDiskCapacity
- NetworkNotReady
- Preempting
- ProbeWarning
- Rebooted
error:
- FailedCreatePodContainer
- FailedMountOnFilesystemMismatch
- FailedPodSandBoxStatus
- FailedScheduling
- FileSystemResizeFailed
- FreeDiskSpaceFailed
- KubeletSetupFailed
- Unhealthy
- VolumeResizeFailed
critical:
- ErrImagePull
- ErrImageNeverPull
- Failed
- FailedAttachVolume
- FailedMapVolume
- FailedMount
- NodeNotReady
- NodeNotSchedulable
output: {{ .output }}

0 comments on commit 9418653

Please sign in to comment.