INNER CODE UNIT · Go

main

kubernetes-sigs/agent-sandbox · cmd/metrics-docs-gen/main.go:27

func main() {
	source := flag.String("source", "internal/metrics", "Directory of the Go package declaring the Prometheus metrics. Only files directly in it are read; subdirectories are other packages.")
	output := flag.String("output", "docs/metrics.md", "Path of the Markdown file to write.")
	flag.Parse()

	if err := metricsdocs.Generate(*source, *output); err != nil {
		fmt.Fprintf(os.Stderr, "metrics-docs-gen: %v\n", err)
		os.Exit(1)
	}
}

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…