mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
change: minor change to health check api endpoint
This commit is contained in:
parent
f6f2d85aa7
commit
19a04b7e4a
@ -175,7 +175,7 @@ func (hs *HttpServer) healthHandler(ctx *macaron.Context) {
|
|||||||
data.Set("commit", setting.BuildCommit)
|
data.Set("commit", setting.BuildCommit)
|
||||||
|
|
||||||
if err := bus.Dispatch(&models.GetDBHealthQuery{}); err != nil {
|
if err := bus.Dispatch(&models.GetDBHealthQuery{}); err != nil {
|
||||||
data.Set("db_status", "failing")
|
data.Set("database", "failing")
|
||||||
}
|
}
|
||||||
|
|
||||||
ctx.Resp.Header().Set("Content-Type", "application/json; charset=UTF-8")
|
ctx.Resp.Header().Set("Content-Type", "application/json; charset=UTF-8")
|
||||||
|
Loading…
Reference in New Issue
Block a user