Skip to content

Commit

Permalink
More review comments
Browse files Browse the repository at this point in the history
Signed-off-by: Shubhendu Ram Tripathi <[email protected]>
  • Loading branch information
shtripat committed Jul 19, 2023
1 parent bd962ee commit c08477d
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion cmd/admin-prometheus-metrics.go
Original file line number Diff line number Diff line change
Expand Up @@ -95,8 +95,10 @@ func printPrometheusMetrics(ctx *cli.Context) error {
metricsSubSystem = "node"
case "bucket":
metricsSubSystem = "bucket"
default:
case "":
metricsSubSystem = "cluster"
default:
fatalIf(errInvalidArgument().Trace(), "invalid metric type '%v'", args.Get(1))
}

req, e := http.NewRequest(http.MethodGet, hostConfig.URL+metricsEndPointRoot+metricsSubSystem, nil)
Expand Down

0 comments on commit c08477d

Please sign in to comment.