sentry icon indicating copy to clipboard operation
sentry copied to clipboard

Google Chat Notification Support

Open tjerkw opened this issue 2 years ago • 26 comments

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

tjerkw avatar May 22 '23 15:05 tjerkw

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

getsantry[bot] avatar May 22 '23 15:05 getsantry[bot]

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

getsantry[bot] avatar May 22 '23 22:05 getsantry[bot]

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?

Dhrumil-Sentry avatar May 22 '23 22:05 Dhrumil-Sentry

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. 🍰

efonzie avatar Jul 07 '23 18:07 efonzie

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.

tjerkw avatar Jul 07 '23 20:07 tjerkw

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

buzzguy avatar Aug 29 '23 15:08 buzzguy

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.

marcaurele avatar Jan 03 '24 06:01 marcaurele

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

Dhrumil-Sentry avatar Jan 03 '24 17:01 Dhrumil-Sentry

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.

kkimdev avatar Jan 14 '24 06:01 kkimdev

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.

zachfeldman avatar Jan 25 '24 23:01 zachfeldman

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

philos3 avatar Feb 27 '24 11:02 philos3

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.

amardesai1 avatar Jun 07 '24 21:06 amardesai1

This would be a really handy integration to have

GoodPie avatar Jul 16 '24 13:07 GoodPie

No updates for an official Google Chat integration. It does not have significant adoption among our paid organizations yet.

leedongwei avatar Jul 17 '24 20:07 leedongwei

No updates for an official Google Chat integration. It does not have significant adoption among our paid organizations yet.

@leedongwei Where should we report that so you link your subscribers to this feature request?

marcaurele avatar Jul 18 '24 09:07 marcaurele

No updates for an official Google Chat integration. It does not have significant adoption among our paid organizations yet.

I m really surprised by this affirmation, how do you monitor that ? we're a paid customer and i know other using google chat...

wadjeroudi avatar Jul 18 '24 10:07 wadjeroudi

@marcaurele This thread is the first result on Google, and the PyPi project is the fourth result.

Image

Folks can 👍 on the first message here to express support. If you are an enterprise account, please reach out to your account CSM too.

leedongwei avatar Jul 18 '24 22:07 leedongwei

This feature is quite easy to implement: it’s low hanging fruit. I don’t see why Sentry would spend at least a bit of time on what customers want.

-- Tjerk Wolterink

On Fri, Jul 19, 2024 at 00:02 Danny Lee @.***> wrote:

@marcaurele https://github.com/marcaurele This thread is the first result on Google, and the PyPi project https://pypi.org/project/sentry-googlechat/ is the fourth result.

Screenshot.2024-07-18.at.2.59.09.PM.png (view on web) https://github.com/user-attachments/assets/1ea88183-74b5-4c5a-a3b5-6ee919c23978

Folks can 👍 on the first message here to express support. If you are an enterprise account, please reach out to your account CSM too.

— Reply to this email directly, view it on GitHub https://github.com/getsentry/sentry/issues/49542#issuecomment-2237700502, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAGH5MO7ZIIW5I7RJWZQOYTZNA3QPAVCNFSM6AAAAAAYKSUKXOVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDEMZXG4YDANJQGI . You are receiving this because you were mentioned.Message ID: @.***>

tjerkw avatar Jul 19 '24 05:07 tjerkw

Any progress on this or ETA? I like Sentry but my company moved to Google Chat and now I feel like getting notifications when something is broken is kinda useful.

lingoboris avatar Dec 08 '24 18:12 lingoboris

This is not prioritized yet. I'll post an update when we get to it.

sentaur-athena avatar Dec 10 '24 21:12 sentaur-athena

https://sentry.zendesk.com/agent/tickets/146666

InterstellarStella avatar Mar 04 '25 13:03 InterstellarStella

We don't have this integration in future plans but customers can easily create an internal integration that does the same.

Docs for internal integration: https://docs.sentry.io/organization/integrations/integration-platform/internal-integration/ Doc for google chat APIs: https://developers.google.com/workspace/chat/api/reference/rest

sentaur-athena avatar Mar 05 '25 17:03 sentaur-athena

@sentaur-athena Hi, Any suggestions for SaaS Sentry customers? Maybe some other notification service that could act as bridge to Google Chat?

hfoffani avatar Mar 09 '25 17:03 hfoffani

@hfoffani the link that @sentaur-athena provided is available to SaaS Sentry Customers. You'll require an intermediary service to receive the outbound post requests from from Sentry and re-package them into notifications that conform to the Google Chat REST API specs: https://developers.google.com/workspace/chat/api/reference/rest

This is a useful page for getting started with Webhooks from an Internal Integration: https://docs.sentry.io/organization/integrations/integration-platform/webhooks/#developing-and-testing-webhooks

souredoutlook avatar Mar 09 '25 21:03 souredoutlook

Thank you for the response @souredoutlook

sentaur-athena avatar Mar 11 '25 23:03 sentaur-athena

In 2025 is there a plan for a integration to alert in google chat or any way to provide a webhook that sends a post to an url with a body that I can set up?

LuccaRomanelli avatar Jun 13 '25 18:06 LuccaRomanelli

@LuccaRomanelli no plan to build the integration. I posted about setting up a webhook here. Did that not work?

sentaur-athena avatar Jun 18 '25 18:06 sentaur-athena

Is there any update?

numan-myalfred avatar Jul 29 '25 20:07 numan-myalfred

@numan-myalfred https://github.com/getsentry/sentry/issues/49542#issuecomment-2701676336

sentaur-athena avatar Aug 04 '25 21:08 sentaur-athena

Waiting for this to happen

sergey-koba-mobidev avatar Sep 08 '25 08:09 sergey-koba-mobidev