Skip to content

Commit

Permalink
feat: healthcheck for aws ALB
Browse files Browse the repository at this point in the history
  • Loading branch information
tim-goto committed Oct 14, 2024
1 parent 2f3d71b commit 9c5712a
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions plugins/receivers/github/github.go
Original file line number Diff line number Diff line change
Expand Up @@ -174,6 +174,10 @@ func Run(
}

server := &http.Server{Addr: ":" + ctxPlugin.Port}
http.HandleFunc("/healthcheck", func(w http.ResponseWriter, r *http.Request) {
w.WriteHeader(http.StatusOK)
w.Write([]byte("ok"))
})
http.HandleFunc("/jobs/v1/receiver", func(w http.ResponseWriter, r *http.Request) {
databaseContainer, err := database.GetDatabaseFromContext(pluginCtx)
if err != nil {
Expand Down

0 comments on commit 9c5712a

Please sign in to comment.