Closed IdeoG closed 8 months ago
Thank you for reporting this @IdeoG
Do you have any customPlaybooks
configured?
If so, can you please share your customPlaybooks
section ? (Please make sure not to share any sensitive value)
builtinPlaybooks:
- triggers:
- on_kubernetes_warning_event:
namespace_prefix: jupyterhub
actions:
- resource_babysitter: {}
so, it's a part of my values.yaml
config file.
Typically, Robusta installation has the values.yaml
file, which is the defaults
file, and the generated_values.yaml
file, which is the overrides
file.
Is it configured this way on your installation as well?
Regardless, you're welcome to join our Slack community. We're available there as well. You can find the link to our Slack channel here: https://home.robusta.dev/
Oh, i see, suddenly, i used trainers.values.yaml
filename, so i renamed it to values.yaml
and hope it will help. Thank you!
Hmm, it didn't work. Pod created/deleted events are coming to my tg group. Is there any ideas
Can you please share your generated_values.yaml
file (without the sensitive values, if there are any)
builtinPlaybooks:
- triggers:
- on_kubernetes_warning_event:
namespace_prefix: jupyterhub
actions:
- resource_babysitter: {}
globalConfig:
signing_key: ...
account_id: 631b58c8-d88d-4c63-b7c8-94e0be313823
sinksConfig:
- telegram_sink:
name: personal_telegram sink
bot_token: ...
chat_id: -1001758586891
disableCloudRouting: true
runner:
sendAdditionalTelemetry: false
Can you explain when you'd like to get a notification on telegram
?
For example, when a deployment
is created, or when a statefulset
is changed?
Sure! My use cases:
Thank you for your help!
Thank you
In general, when adding new playbooks, you should use the customPlaybooks
value, and not the builtinPlaybooks
Specifically, regarding your use cases:
Deployment update
- triggers:
- on_deployment_update: {}
actions:
- resource_babysitter:
fields_to_monitor:
- spec
This will send a change event, whenever the deployment spec change.
Deployment creation
- triggers:
- on_deployment_create: {}
actions:
- create_finding:
aggregation_key: "Deployment Created"
severity: INFO
title: "New deployment created"
description: "New deployment: name - $name on namespace - $namespace"
k8s warnings from namespace This might be too spammy, but if you do want it, this is the playbook you need:
- triggers:
- on_kubernetes_warning_event_create:
exclude: ["NodeSysctlChange"]
actions:
- event_report: {}
- event_resource_events: {}
Pod crash loops, oom kills etc are configured by default. You don't need to modify anything
So, your generated_values.yaml
file should have:
customPlaybooks:
- triggers:
- on_deployment_update: {}
actions:
- resource_babysitter:
fields_to_monitor:
- spec
- triggers:
- on_deployment_create: {}
actions:
- create_finding:
aggregation_key: "Deployment Created"
severity: INFO
title: "New deployment created"
description: "New deployment: name - $name on namespace - $namespace"
- triggers:
- on_kubernetes_warning_event_create:
exclude: ["NodeSysctlChange"]
actions:
- event_report: {}
- event_resource_events: {}
Please let us know if you have additional questions
@IdeoG , did the above configuration solve your use cases?
Closing due to inactivity. @IdeoG please feel free to re-open if you have issues.
subj, i found it was declared in ConfigLoader as internal trigger.
Notifications on every pod creation/deletion is redudant in our logic, or we just want to separate telegram alerts for release notifications and alerts. it would be helpful to do that.