getsentry / sentry

Developer-first error tracking and performance monitoring
https://sentry.io
Other
37.56k stars 4.04k forks source link

Google Chat Notification Support #49542

Open tjerkw opened 1 year ago

tjerkw commented 1 year ago

Problem Statement

I want to re-open https://github.com/getsentry/sentry/issues/9206

More and more business have moved to google chat... So having a native integration would be usefull

Solution Brainstorm

No response

Product Area

Alerts

getsantry[bot] commented 1 year ago

Assigning to @getsentry/support for routing, due by (sfo). ⏲️

getsantry[bot] commented 1 year ago

Routing to @getsentry/product-owners-settings-integrations for triage, due by (sfo). ⏲️

Dhrumil-Sentry commented 1 year ago

Hi @tjerkw - Thanks a lot for the request, Is there anything in particular you'd like to see in such an integration? Beyond support for issue alerts and metric alerts?

efonzie commented 1 year ago

Hi @tjerkw - Thanks a lot for the request, Is there anything in particular you'd like to see in such an integration? Beyond support for issue alerts and metric alerts?

Personally, I would be very excited to just have Issue Alerts. Anything else would be icing on the cake. 🍰

tjerkw commented 1 year ago

Indeed, basically similar feature set as the slack integration: https://docs.sentry.io/product/integrations/notification-incidents/slack/

But as a minimum issue alerting. Currently we already solved this by writing a webhook that submits to google chat. But I guess sentry can do a way better job by investing a bit of time. It would be beneficial for sentry in the long term too.

buzzguy commented 10 months ago

is there an example of an internal integration for a custom webhook that sends to a google space url in the {"text": "{{issue}}"} format?

marcaurele commented 6 months ago

Where is that feature on the development list? We would love to have it too as today we rely on exposing metrics through prometheus and grafana to alert us.

Dhrumil-Sentry commented 6 months ago

This is still in our backlog, We don't anticipate we will get to this in the next 2 quarters. But we'll keep this issue updated if there's any change in the timeline

kkimdev commented 5 months ago

fwiw, here is a third party implementation: https://github.com/jweslley/sentry-googlechat

Our company recently migrated from Slack to Google Chat, this feature would be very useful.

zachfeldman commented 5 months ago

We have a simple Sinatra app to forward webhooks from various sources to the persnickety GChat format. Here's the rough code for it if anyone wants to crib it:

post '/sentry-notifications' do
    req_body = request.body.read
    @request_payload = JSON.parse(req_body)
    text = "<#{@request_payload['url']}|#{@request_payload['message']}>\n"
    text += "Culprit: #{@request_payload['culprit']}\n"
    text += "Project: #{@request_payload['project_name']}"
    post_to_google_chat(text, 'GOOGLE_CHAT_SENTRY_ROOM_WEBHOOK_URL')
    halt 200
end

def post_to_google_chat(message, channel='GOOGLE_CHAT_HEROKU_ROOM_WEBHOOK_URL')
    HTTParty.post(
        ENV[channel],
        body: {'text': message}.to_json,
        headers: {'Content-Type' => 'application/json'}
    )
end

With this, the Legacy Webhooks integration, and a new Alert, I think we're all set for now - but an official integration would be super nice.

philos3 commented 4 months ago

https://pypi.org/project/sentry-googlechat/

amardesai1 commented 1 month ago

Any update on this? Google Chat usage is on the up and our business has moved away from slack due to pricing.

Any kind of basic issue reporting or official workaround would be fantastic.