Documentation

mc admin prometheus metrics

Description

The mc admin prometheus metrics command prints Prometheus metrics for a cluster.

For more complete documentation on using MinIO with Prometheus, see How to monitor MinIO server with Prometheus

Use mc admin on MinIO Deployments Only

MinIO does not support using mc admin commands with other S3-compatible services, regardless of their claimed compatibility with MinIO deployments.

The following command prints cluster metrics from the deployment at alias myminio:

mc admin prometheus metrics myminio cluster

The command has the following syntax:

mc [GLOBALFLAGS] admin prometheus metrics  \
                                  ALIAS    \
                                  [TYPE]
  • Brackets [] indicate optional parameters.

  • Parameters sharing a line are mutually dependent.

  • Parameters separated using the pipe | operator are mutually exclusive.

Copy the example to a text editor and modify as-needed before running the command in the terminal/shell.

Parameters

ALIAS
Required

The alias of a configured MinIO deployment for which the command prints metrics.

TYPE
Optional

The type of metrics to print.

Changed in version RELEASE.2023-10-07T15-07-38Z: resource metrics added

Valid values are:

  • bucket

  • cluster

  • node

  • resource

If not specified, the command returns cluster metrics. Cluster metrics include rollups of certain node metrics. The output includes additional information about each metric, such as if its value is a counter or gauge.

Global Flags

This command supports any of the global flags.

Example