Skip to content

Commit

Permalink
adds health check endpoint
Browse files Browse the repository at this point in the history
  • Loading branch information
biancamip committed Dec 20, 2023
1 parent e5bfade commit e165143
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -126,6 +126,10 @@ app.get("/metrics", async (req, res) => {
}
});

app.get("/health", async (req, res) => {
res.send("Ok");
});

const server = app.listen(config.port, function () {
debug(
`Prometheus-MSSQL Exporter listening on local port ${config.port} monitoring ${config.connect.authentication.options.userName}@${config.connect.server}:${config.connect.options.port}`
Expand Down

0 comments on commit e165143

Please sign in to comment.