Skip to content

Commit

Permalink
Merge pull request #465 from guardian/add-prout
Browse files Browse the repository at this point in the history
Add Prout to know when PRs are deployed or overdue
  • Loading branch information
rtyley authored Mar 20, 2024
2 parents b69b899 + 9e63442 commit 232e17f
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
6 changes: 6 additions & 0 deletions .prout.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
{
"checkpoints": {
"Checker": { "url": "https://checker.typerighter.gutools.co.uk/healthcheck", "overdue": "15M" },
"Rule Manager": { "url": "https://manager.typerighter.gutools.co.uk/healthcheck", "overdue": "15M" }
}
}
3 changes: 2 additions & 1 deletion apps/rule-manager/app/controllers/HomeController.scala
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ import db.DB
import utils.PermissionsHandler
import com.gu.permissions.PermissionDefinition
import com.gu.typerighter.controllers.PandaAuthController
import typerighter.BuildInfo
import utils.RuleManagerConfig

class HomeController(
Expand All @@ -33,7 +34,7 @@ class HomeController(
def healthcheck() = Action {
try {
db.connectionHealthy()
Ok(Json.obj("healthy" -> true))
Ok(Json.obj("healthy" -> true, "gitCommitId" -> BuildInfo.gitCommitId))
} catch {
case e: Throwable =>
log.error("Healthcheck failed", e)
Expand Down

0 comments on commit 232e17f

Please sign in to comment.