Comments (4)
@pasztorl that's also the type of logic we're covering in Robusta:
- triggers:
- on_deployment_create:
namespace_prefix: "stg-ns"
name_prefix: my-app-name
labels_selector: app=my-app
actions:
- create_finding:
title: "Deployment named $name on namespace $namespace created"
aggregation_key: "Deployment Created"
The rationale for splitting this into two pods (KubeWatch and Robusta) is to split the Kubernetes event-listening logic from the general filtering, forwarding, and routing logic, which can be much more complex. E.g. you might want to forward certain namespaces to one Slack channel, but other namespaces to PagerDuty.
from kubewatch.
Hi @CapKenR
You can't do this in KubeWatch itself right now, but as a workaround you can do it via a Robusta playbook.
Robusta is an open source project based on Kubewatch.
Robusta provides message formatting, filtering and other advanced options.
Here's an example configuration:
customPlaybooks:
- triggers:
- on_deployment_create:
namespace_prefix: "default"
- on_deployment_create:
namespace_prefix: "stg-ns"
actions:
- create_finding:
title: "Deployment named $name on namespace $namespace created"
aggregation_key: "Deployment Created"
- triggers:
- on_deployment_update:
namespace_prefix: "default"
- on_deployment_update:
namespace_prefix: "stg-ns"
actions:
- create_finding:
title: "Deployment named $name on namespace $namespace updated"
aggregation_key: "Deployment Updated"
- triggers:
- on_deployment_delete:
namespace_prefix: "default"
- on_deployment_delete:
namespace_prefix: "stg-ns"
actions:
- create_finding:
title: "Deployment named $name on namespace $namespace deleted"
aggregation_key: "Deployment Deleted"
You can read more here.
There's also another robusta action you can use, that tracks changes here
Will that satisfy your requirements?
from kubewatch.
I was hoping to do this without introducing another tool, but I'll look at Robusta this weekend.
from kubewatch.
I think it would be great if we can specify ignore not just namespace but namespace:object level.
from kubewatch.
Related Issues (20)
- Feature request: Include a cluster identifier in notifications HOT 1
- Disabling "Event" resources does not work HOT 9
- Suppress info logs
- Custom Headers for Webhook and CloudEvents Handlers HOT 2
- Helm: add Slackwebhook entry in values or a free extraHandlers section
- Any reason Microsoft Teams not listed in README? HOT 2
- event informations HOT 1
- Ingress cannot be watched in k8s 1.22+ HOT 6
- helm charts not having secretKeyRef usage HOT 2
- Installation using kubectl is not wotking HOT 5
- Expose golang runtime metrics on kubewatch
- Feature request: Add Amazon EventBridge as supported destination HOT 2
- use official sdk-go for cloudevent handling HOT 1
- Is it possible to have save the output of cloudevents to a file? HOT 3
- Add Custom Payload/Tags to Messages
- Questions regarding kube-watch version support policy HOT 1
- Slack alerts for warning and error events HOT 3
- "reason" support in kubewatch HOT 1
- kubewatch event filtering out by k8s event type type (Normal, Information, Warning)
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from kubewatch.