Webhook for Discourse Uptime Monitoring?

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

if so, How?

3 Likes

See Prometheus exporter plugin for Discourse and https://grafana.com/dashboards/3539.

5 Likes

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

10 Likes

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.

1 Like

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.

2 Likes

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

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

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

3 Likes

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

2 Likes

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!