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

feat: [PAYMCLOUD-197] new kubernetes event exporter filter on module v3 #398

Merged
Merged
Changes from all 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
71 changes: 59 additions & 12 deletions kubernetes_event_exporter/templates/default.tftpl
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
config:
logLevel: "info"
receivers:
- file:
layout: {}
Expand Down Expand Up @@ -37,18 +38,64 @@ config:
- match:
- receiver: dump
%{ if enable_slack }
- drop:
- namespace: "*test*"
- type: "Normal"
match:
- kind: "Pod|Deployment|ReplicaSet"
receiver: "slack"
- match:
- reason: "Unhealthy"
message: ".*OOMKilled.*"
type: "Warning|Error"
route:
- receiver: "slack"

- match:
- reason: "Unhealthy"
message: ".*CrashLoopBackOff.*"
type: "Warning|Error"
route:
- receiver: "slack"

- match:
- drop:
- reason: "Unhealthy"
message: ".*Readiness probe failed.*"

- match:
- drop:
- reason: "Unhealthy"
message: ".*Liveness probe failed.*"

- match:
- reason: "Failed"
type: "Warning|Error"
route:
- receiver:
%{ endif }
%{ if enable_opsgenie }
- drop:
- namespace: "*test*"
- type: "Normal"
match:
- kind: "Pod|Deployment|ReplicaSet"
receiver: "${opsgenie_receiver_name}"
- match:
- reason: "Unhealthy"
message: ".*CrashLoopBackOff.*"
type: "Warning|Error"
route:
- receiver: "${opsgenie_receiver_name}"

- match:
- reason: "Unhealthy"
message: ".*OOMKilled.*"
type: "Warning|Error"
route:
- receiver: "${opsgenie_receiver_name}"

- match:
- drop:
- reason: "Unhealthy"
message: ".*Readiness probe failed.*"

- match:
- drop:
- reason: "Unhealthy"
message: ".*Liveness probe failed.*"

- match:
- reason: "Failed"
type: "Warning|Error"
route:
- receiver: "${opsgenie_receiver_name}"
%{ endif }