mirror of
https://github.com/grafana/grafana.git
synced 2026-07-30 08:18:10 -05:00
HealthCheck: show enterprise commit (#75242)
This commit is contained in:
@@ -679,6 +679,9 @@ func (hs *HTTPServer) apiHealthHandler(ctx *web.Context) {
|
||||
if !hs.Cfg.AnonymousHideVersion {
|
||||
data.Set("version", hs.Cfg.BuildVersion)
|
||||
data.Set("commit", hs.Cfg.BuildCommit)
|
||||
if hs.Cfg.EnterpriseBuildCommit != "NA" && hs.Cfg.EnterpriseBuildCommit != "" {
|
||||
data.Set("enterpriseCommit", hs.Cfg.EnterpriseBuildCommit)
|
||||
}
|
||||
}
|
||||
|
||||
if !hs.databaseHealthy(ctx.Req.Context()) {
|
||||
|
||||
Reference in New Issue
Block a user