kwatch icon indicating copy to clipboard operation
kwatch copied to clipboard

Ability to send a more compact/dense messages to slack

Open mfn opened this issue 3 years ago • 0 comments

Is your feature request related to a problem? Please describe. I would like to see a more compact notifications (at least on Slack), as the current format takes up a lot of screen space and I wish the information would be more dense and less verbose.

Describe the solution you'd like Example what it looks currently (screenshot is from the readme): image

Translating to text:

Pod Crash

There is an issue with your pod!

Name                             Container
mytest                           nginx

Namespace                        Reason
default                          ErrImagePull

Events
…
…
…

Logs:
…

It would be great if there was an option to have a condensed format, example:

kwatch: Pod Crash: default/mytest:nginx: ErrImagePull

Further it would be great if both "Events" and "Logs" can be tuned to only show the last n lines, ranging from 0 to Inf or so.

With n being 1:

kwatch: Pod Crash: default/mytest:nginx: ErrImagePull

Events:
<last line>

Logs:
<last line>

If either the last lines for Events/Logs is 0, it shouldn't be displayed at all.

(well, maxRecentLogLines is already there for "Logs", just wanted to mention it in regards for "Events")

WDYT? Thank you for considering 🙏🏼

mfn avatar Mar 24 '22 07:03 mfn