The discussion revolves around whether Discourse supports incoming webhooks to create forum topics from external services like PagerDuty. matthoward asks if Discourse can receive webhooks to post alerts, similar to how Google Chat handles them. pfaffman clarifies that Discourse does not natively support incoming webhooks but requires API calls, either via intermediaries like Zapier or by writing a custom plugin. pfaffman further explains that webhooks in Discourse are typically outbound, while API calls are inbound. matthoward confirms his understanding and seeks confirmation on the lack of built-in incoming webhook support. Falco notes that while Discourse supports some webhooks (e.g., email bounces, Patreon), for PagerDuty integration, a custom plugin is needed, referencing a similar plugin for Prometheus alerts as an example.
Does Discourse have functionality to receive an incoming webhook from a service like PagerDuty and post it to a forum? Basically I’d send alerts from PagerDuty to the WebHook URL for Discourse and it would create a new forum topic.
If so, is there a guide that I can follow to set this up?
You’ll need to make calls to the Discourse API, perhaps using some intermediary like Zapier, OR write a plugin to catch whatever arbitrary incoming stuff.
If you can get PagerDuty to conform to Discourse’s API, then you’re golden. You can search here for examples and/or see Reverse engineer the Discourse API.
ok, i only asked because sites like google chat will give you a url you can use to point web hooks to so I could copy that url and put it in pagerduty and have pagerduty send an alert to the google chat webhook url and post in google chat. wasnt sure if there was similar functionality with discourse
We support some webhooks, like for email bounce from some SMTP providers in core, and some webhooks in plugins, like Patreon webhooks in the Patreon plugin.
For your need, PagerDuty webhooks into Discourse topics, you will need to write a plugin.