Skip to content

Commit

Permalink
introspection: allow custom health function
Browse files Browse the repository at this point in the history
Signed-off-by: Iain Duncan <iain.duncan@uk.ibm.com>
  • Loading branch information
iainduncani authored and crozzy committed Jul 21, 2022
1 parent 668f443 commit f4db261
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions introspection/server.go
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,8 @@ func New(ctx context.Context, conf config.Config, health func() bool) (*Server,
if health == nil {
zlog.Warn(ctx).Msg("no health check configured; unconditionally reporting OK")
i.health = func() bool { return true }
} else {
i.health = health
}

// configure prometheus
Expand Down

0 comments on commit f4db261

Please sign in to comment.