@grow-codes/opentelemetry-collector - v0.1.1
    Preparing search index...

    Class CollectorHealthClient

    Health of an OpenTelemetry Collector: GET {healthUrl} (health_check extension) and, when that endpoint is unreachable (stock stacks bind it to localhost), GET {zpagesUrl}/debug/servicez. Admin endpoints are unauthenticated: the configured export headers are never sent to them.

    Index

    The immutable configuration.

    • Releases connections. Idempotent; later calls fail with CancelledError.

      Returns Promise<void>

    • Collector health. 200 {"status":"Server available",…} → healthy=true, status="ok" with details {source: "health_check", vendorStatus, upSince, uptime}; 503 → unhealthy; unreachable → zpages fallback (details.source = "zpages"), else unreachable. Never throws for an unhealthy or unreachable collector (only CANCELLED and CONFIG).

      Parameters

      Returns Promise<HealthStatus>