ricardomaraschini / oomhero

Kubernetes sidecar for memory usage tracking
Apache License 2.0
108 stars 10 forks source link

Add configurability of signals sent #14

Closed szarykott closed 1 year ago

szarykott commented 1 year ago

Solves #13

This pull request includes changes to code and documentation.

I am not a Go developer, please point out any silly mistakes I have done.

I decided to add handling of only a subset of available signals, only the ones I imagined one might want to send to a process when memory consumption is growing. I wanted signals to be specified by name in environment variables, but I did not find any function in std to convert from name to a signal - if such a function exists, please point me to it.

ricardomaraschini commented 1 year ago

@szarykott Thanks for submitting this! Let's get it merged.