Skip to content

Google chat notifications are not received when bulk #83

@diegocejasprieto

Description

@diegocejasprieto

When firing multiples alerts at the same time for the same endpoint, only the first one is received in google chat. The rest of them seems to be discared
The pods shows errors like "error sending message","error":"non ok response from gchat" which does not tell you what's exactly going on.

The app should include a mechanism for retrying sending alerts when this happens or fire them after a few seconds between each other to avoid these kind of errors

I'm using image ghcr.io/mr-karan/calert:v2.1.1, deployed by helm chart

{"time":"2024-11-08T15:23:33.800146915Z","level":"INFO","source":{"function":"github.com/mr-karan/calert/internal/notifier.(*Notifier).Dispatch","file":"/home/runner/work/calert/calert/internal/notifier/notifier.go","line":41},"msg":"dispatching alerts","count":2}
{"time":"2024-11-08T15:23:33.800173642Z","level":"INFO","source":{"function":"github.com/mr-karan/calert/internal/providers/google_chat.(*GoogleChatManager).Push","file":"/home/runner/work/calert/calert/internal/providers/google_chat/google_chat.go","line":109},"msg":"dispatching alerts to google chat","count":2}
{"time":"2024-11-08T15:23:33.800273706Z","level":"INFO","source":{"function":"github.com/mr-karan/calert/internal/notifier.(*Notifier).Dispatch","file":"/home/runner/work/calert/calert/internal/notifier/notifier.go","line":41},"msg":"dispatching alerts","count":1}
{"time":"2024-11-08T15:23:33.800346855Z","level":"INFO","source":{"function":"github.com/mr-karan/calert/internal/providers/google_chat.(*GoogleChatManager).Push","file":"/home/runner/work/calert/calert/internal/providers/google_chat/google_chat.go","line":109},"msg":"dispatching alerts to google chat","count":1}
{"time":"2024-11-08T15:23:33.877335705Z","level":"ERROR","source":{"function":"github.com/mr-karan/calert/internal/providers/google_chat.(*GoogleChatManager).Push","file":"/home/runner/work/calert/calert/internal/providers/google_chat/google_chat.go","line":140},"msg":"error sending message","error":"non ok response from gchat"}
{"time":"2024-11-08T15:23:33.957092268Z","level":"ERROR","source":{"function":"github.com/mr-karan/calert/internal/providers/google_chat.(*GoogleChatManager).Push","file":"/home/runner/work/calert/calert/internal/providers/google_chat/google_chat.go","line":140},"msg":"error sending message","error":"non ok response from gchat"

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions