Webhook for Discourse Uptime Monitoring?


(Bhanu Sharma) #1

Can Discourse Webhooks be used for reporting uptime to a 3rd party service e.g. hund.io ?

if so, How?


(Jay Pfaffman) #2

See Prometheus exporter plugin for Discourse and Discourse Stats dashboard for Grafana | Grafana Labs.


(Rafael dos Santos Silva) #3

If you just need to measure uptime, configure your tool to hit discourse.example.com/srv/status.


(Bhanu Sharma) #4

Exactly what I want! … as this is to report system uptime to someone visiting a public status page. I saw webhooks in the hund.io configuration page so I thought maybe that is something but I’ll try the Pingdom integration instead.

Thanks for help.

@pfaffman we are using Promethus Integration for advanced Stuff already … needed something to test discourse availability every few seconds and report to a 3rd party for a public status page. The solution by @Falco should work afaik but I’ll test and update how it goes.


(Jay Pfaffman) #6

Well, I don’t know whether I trust it.

https://community.yellowandblack.online/srv/status says OK, but https://community.yellowandblack.online/ returns a 500 error.


(Mittineague) #7

I tried it just now and got the “Congratulations” setup page.


(Jay Pfaffman) #8

But if you reload a few times, you’ll stop getting that. At least, that’s my experience.


(Alan Tan) #9

/srv/status is meant for measuring uptime only and not whether the server is returning the right response.


(Matt Palmer) #10

I guess that depends on how you define “uptime”…


(Bhanu Sharma) #11

In a Layman’s term, Service is Properly functioning! e.g. if there is a 500 error then it should return something other than ok!

@pfaffman I can confirm that behaviour. My system runs behind a Nginx reverse proxy and I Get okay no matter what!