serve

package
v0.9.15 Latest Latest
Warning

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

Go to latest
Published: Feb 4, 2026 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ServeCmd = &cobra.Command{
	Use:   "serve",
	Short: "Start metrics and health endpoints server",
	Long: `Start a long-running HTTP server for Prometheus metrics and health endpoints.

This command starts an HTTP server that exposes:
  • /metrics  - Prometheus metrics endpoint
  • /healthz  - Liveness probe for Kubernetes
  • /readyz   - Readiness probe for Kubernetes

The server runs until interrupted (Ctrl+C) and is designed for production deployments
where you want persistent metrics collection and health monitoring.

Examples:
  # Start server on default port 9090
  weave serve

  # Start server on custom port
  weave serve --metrics-port 8080

  # With custom logging
  weave serve --log-format json --log-level info --log-file /var/log/weave.log

  # Full production setup
  weave serve --metrics-port 9090 --log-format json --log-file /var/log/weave.log

The server will gracefully shut down on SIGINT/SIGTERM signals.`,
	Run: runServe,
}

ServeCmd represents the serve command

Functions

This section is empty.

Types

This section is empty.

Jump to

Keyboard shortcuts

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