Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var Cmd = &cobra.Command{ Use: "server", Short: "Run Prometheus Demo Server", Aliases: []string{"s"}, Args: cobra.NoArgs, Run: func(c *cobra.Command, args []string) { addr := ":" + strconv.Itoa(FlagPort) if FlagConfigFilePath != "" { libserver.ServerWithConfig(addr, FlagConfigFilePath) } else { fmt.Println("[slu " + version.Version + "] Run with default configuration") libserver.ServerWithDefaultConfig(addr) } }, }
View Source
var FlagConfigFilePath string
View Source
var FlagPort int
Functions ¶
This section is empty.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.