robusta-dev / robusta

Kubernetes observability and automation, with an awesome Prometheus integration
https://home.robusta.dev/
MIT License
2.5k stars 247 forks source link

How can I get log, graph when using webhook_sink? #1482

Open tommy04062019 opened 5 days ago

tommy04062019 commented 5 days ago

Hi team, Currently, I use webhook_sink to send alerts but I don't know how to get logs, graph like telegram_sink does.

github-actions[bot] commented 5 days ago

Hi 👋, thanks for opening an issue! Please note, it may take some time for us to respond, but we'll get back to you as soon as we can!

aantn commented 5 days ago

Hi, where are you sending the alerts to by webhook? I don't think we support it on the webhook sink right now.

On Mon, Jul 1, 2024 at 11:58 AM github-actions[bot] < @.***> wrote:

Hi 👋, thanks for opening an issue! Please note, it may take some time for us to respond, but we'll get back to you as soon as we can!

— Reply to this email directly, view it on GitHub https://github.com/robusta-dev/robusta/issues/1482#issuecomment-2199606136, or unsubscribe https://github.com/notifications/unsubscribe-auth/AADYUB232ZP2LNMGN4US7BTZKEK27AVCNFSM6AAAAABKFD5Z4WVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDCOJZGYYDMMJTGY . You are receiving this because you are subscribed to this thread.Message ID: @.***>

tommy04062019 commented 5 days ago

Hi, where are you sending the alerts to by webhook? I don't think we support it on the webhook sink right now. … On Mon, Jul 1, 2024 at 11:58 AM github-actions[bot] < @.> wrote: Hi 👋, thanks for opening an issue! Please note, it may take some time for us to respond, but we'll get back to you as soon as we can! - 💬 Slack Community: Join Robusta team and other contributors on Slack here https://bit.ly/robusta-slack. - 📖 Docs: Find our documentation here https://docs.robusta.dev/master/. - 🎥 YouTube Channel: Watch our videos here @.>. — Reply to this email directly, view it on GitHub <#1482 (comment)>, or unsubscribe https://github.com/notifications/unsubscribe-auth/AADYUB232ZP2LNMGN4US7BTZKEK27AVCNFSM6AAAAABKFD5Z4WVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDCOJZGYYDMMJTGY . You are receiving this because you are subscribed to this thread.Message ID: @.***>

Hi @aantn : Could you tell me how the telegram_sink get logs and graph? My org has hundreds of Telegram users and services, each one may be receive alerts on one or more services, so we have to use webhook_sink to manage by ownself

aantn commented 4 days ago

Hi @tommy04062019, Here is the relevant code in the telegram sink - https://github.com/robusta-dev/robusta/blob/07ca9bb0f7283f66134a7ae5f814596f1d3f045d/src/robusta/core/sinks/telegram/telegram_sink.py#L36

And here is the code for the webhook sink which you would have to add it to - https://github.com/robusta-dev/robusta/blob/07ca9bb0f7283f66134a7ae5f814596f1d3f045d/src/robusta/core/sinks/webhook/webhook_sink.py#L30

If you are interesting in contributing a PR for this, we have instructions on setting up a dev environment here - https://docs.robusta.dev/master/setup-robusta/installation/dev-setup.html

Can you explain more on how you manage it by yourself with the webhook_sink?