probe

package
v0.7.3 Latest Latest
Warning

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

Go to latest
Published: Jun 10, 2026 License: Apache-2.0, MIT Imports: 4 Imported by: 0

Documentation

Overview

Package probe implements the container self-probe behind `wavefront probe --ready`. The runtime image is distroless — no shell, no wget/curl — so an exec-style container healthcheck cannot probe the ops listener from outside the binary; the binary probes itself instead, and the image's HEALTHCHECK execs it (#145).

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Ready

func Ready(addr string, timeout time.Duration) error

Ready GETs http://<addr>/ready and returns nil only on a 200 — the ops listener's signal that a valid bundle is loaded. addr is the configured ops listen address (WAVEFRONT_METRICS_ADDR); a wildcard listen host is rewritten to loopback so the same value serves both purposes. Any other outcome — non-200, connection refused, timeout — is an error, which the command maps to a non-zero exit.

Types

This section is empty.

Jump to

Keyboard shortcuts

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