Skip to content

Instantly share code, notes, and snippets.

@mustafaakin
Created December 12, 2019 10:56
Show Gist options
  • Save mustafaakin/042f2953caa6a065e91a9fb5c20c08a1 to your computer and use it in GitHub Desktop.
Save mustafaakin/042f2953caa6a065e91a9fb5c20c08a1 to your computer and use it in GitHub Desktop.
Configuration for Kubernetes Event Exporteer
route:
# Main route
routes:
# This route allows dumping all events because it has no fields to match and no drop rules.
- match:
- receiver: dump
# This starts another route, drops all the events in *test* namespaces and Normal events
# for capturing critical events
- drop:
- namespace: "*test*"
- type: "Normal"
match:
- receiver: "critical-events-queue"
# This a final route for user messages
- match:
kind: "Pod|Deployment|ReplicaSet"
labels:
version: "dev"
receiver: "slack"
receivers:
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment