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

Support for multiple namespace #80

Open
amandpay opened this issue Jul 2, 2024 · 8 comments
Open

Support for multiple namespace #80

amandpay opened this issue Jul 2, 2024 · 8 comments

Comments

@amandpay
Copy link

amandpay commented Jul 2, 2024

Hi ,
Is multiple namespace supported ?
I can see option to add either on or leave empty to watch all namespaces.

I have deployed kubewatch using helm. And i want resources which are namespace based to be watched from few namespace only.

@arikalon1
Copy link
Collaborator

hey @amandpay

As you said, kubewatch support only watching a specific namespace, or all.
One option is to install kubewatch instance in each namespace you want to watch.
Another option is to install Robusta which include kubewatch, and to the namespace filtering in Robusta

At the moment we don't plan to add the option to monitor multiple namespace directly in kubewatch

@amandpay
Copy link
Author

amandpay commented Jul 3, 2024

Hi @arikalon1 Thanks for the update.
Does Robusta supports node monitoring ?

I would like to use without Prometheus.
1.Like if any node is not ready will it send alert ?
2.Also is this free of cost ?
3.I want to also control events ?

@arikalon1
Copy link
Collaborator

Hey @amandpay

You can use Robusta without Prometheus.
We have an action in Robusta named node_health_watcher
It sends a notification each time the node status is changed from Ready to Not Ready and vice versa.
We found it to be too spammy, and send too many notifications, so we removed it from the docs.

If you want still try it, add this custom playbook to Robusta:

customPlaybooks:
- triggers:
    - on_node_update: {}
  actions:
    - node_health_watcher: {}

I personally think Prometheus is a better way to monitor it, because it alerts for issues that only persists for more than X minutes.

@amandpay
Copy link
Author

amandpay commented Jul 3, 2024

How can we mention multiple namespace to watch resource from only namespace1 and namespace2 ?

@arikalon1
Copy link
Collaborator

In Robusta, you can define to send only notifications coming from a list of namespaces

It will not work for the above playbook, because Node is not a namespaced resource (It doesn't belong to a single namespace)

@amandpay
Copy link
Author

amandpay commented Jul 3, 2024

That i got it.
I want node alerts as well and pod alerts from few namespaces.

Can you share some example ?

@arikalon1
Copy link
Collaborator

arikalon1 commented Jul 3, 2024

In Robusta, the destinations are called Sinks
For each Sink you can define the scope of it.
You can read more about sinks scopes here

Your scope should include any message coming from a list of namespaces, on those from the node_health_watcher

Should be something like:

sinksConfig:
- slack_sink:
   ...
   scope:
     include:
     - namespace:  # this matches notifications from namespace1 or namespace2
       - namespace1
       - namespace2
     - identifier: NodeNotReady  # this matches the unhealthy nodes notifications

@amandpay
Copy link
Author

amandpay commented Jul 3, 2024

Got it thanks.

Values.yaml says the below note

NOTE: Do not use this file to install Robusta. It has missing values that need to be filled in. See the installation instructions instead https://docs.robusta.dev/master/installation.html

How can add customPlaybooks then ?

Also i want to change few more configs like restart_count etc. How can I ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants