serve

package
v0.12.3 Latest Latest
Warning

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

Go to latest
Published: Mar 27, 2026 License: MIT Imports: 10 Imported by: 1 module, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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