promethues

This commit is contained in:
wangchuxiao
2023-05-09 11:46:18 +08:00
parent 22e0fc216b
commit 20828746ea
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -52,7 +52,7 @@ func (r *RootCmd) GetPortFlag() int {
}
func (r *RootCmd) AddPrometheusPortFlag() {
r.Command.Flags().String(constant.FlagPrometheusPort, "", "server prometheus listen port")
r.Command.Flags().IntP(constant.FlagPrometheusPort, "pp", 0, "server prometheus listen port")
}
func (r *RootCmd) getPrometheusPortFlag(cmd *cobra.Command) int {