minio / mc

Unix like utilities for object store
https://min.io/download
GNU Affero General Public License v3.0
2.86k stars 548 forks source link

Metrics v3 help for --bucket seems incorrect #4988

Closed feorlen closed 3 months ago

feorlen commented 3 months ago

Using a recent build from master, the help text for mc admin prometheus metrics says --bucket is for v3 metric type bucket. Seems like it should be api instead?

METRIC-TYPE:
  valid values are
    api-version v3 ["api", "system", "debug", "cluster", "ilm", "audit", "logger", "replication", "notification", "scanner"]. 
  --bucket value                bucket name to list metrics for. only applicable with api version v3 for metric type 'bucket'
$ ./mc admin prometheus metrics play bucket --api-version v3
mc: <ERROR> invalid metric type `bucket`. valid values are `api, audit, cluster, debug, ilm, logger, notification, replication, scanner, system`. Invalid arguments provided, please refer `mc <command> -h` for relevant documentation.