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.
Click to show internal directories.
Click to hide internal directories.