symphonyoss / vote-bot

Apache License 2.0
5 stars 5 forks source link

URL to test if the bot is up and running #14

Open maoo opened 7 years ago

maoo commented 7 years ago

In order to understand if the bot is up and running, the vote-bot could expose an HTTP endpoint that tests connectivity with the bot, lists votes (or performs any other health-check necessary) and returns a status (in JSON format).

We use /symphony/votebot/v1/proposal/1 as endpoint to check readiness of our production systems, however, the url didn't fail after the pod endpoints were updated to 1.46, causing a downtime that haven't been notified.

pmonks commented 7 years ago

bot-unfurl uses Jolokia for this, which is super quick and easy, and provides detailed monitoring of many aspects of the JVM that hosts the bot.

Here's the code to get Jolokia running.