healthserver

package
v0.0.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 16, 2026 License: Apache-2.0 Imports: 5 Imported by: 1

Documentation

Overview

Package healthserver provides a shared health/metrics server for Kubernetes probes.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Start

func Start(logger *zap.Logger, port int, readyChecker func() bool)

Start starts a health/metrics server on the specified port. This provides:

  • /healthz - Kubernetes liveness probe (always returns 200 if process is alive)
  • /readyz - Kubernetes readiness probe (calls readyChecker to verify readiness)
  • /metrics - Prometheus metrics endpoint

The server runs in a goroutine and does not block.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL