support cli override for the namespace
@@ -93,6 +93,7 @@ func configureServerCheckCommand(srv *fisk.CmdClause) {
`
check := srv.Command("check", help)
check.Flag("format", "Render the check in a specific format (nagios, json, prometheus, text)").Default("nagios").EnumVar(&checkRenderFormat, "nagios", "json", "prometheus", "text")
+ check.Flag("namespace", "The prometheus namespace to use in output").Default(opts.PrometheusNamespace).StringVar(&opts.PrometheusNamespace)
check.Flag("outfile", "Save output to a file rather than STDOUT").StringVar(&checkRenderOutFile)
conn := check.Command("connection", "Checks basic server connection").Alias("conn").Default().Action(c.checkConnection)
