Doc updates for mc release [2023-10-04T06-52-56Z](https://github.com/minio/docs/issues/1035) - [x] `resource` type for Prometheus metrics - [x] Doc `mc admin trace --request-query`, ~maybe it and some other should be hidden from `mc --help`?~ Staged: http://192.241.195.202:9000/staging/DOCS-1035/linux/operations/monitoring/collect-minio-metrics-using-prometheus.html Fixes https://github.com/minio/docs/issues/1035
1.6 KiB
mc admin prometheus
minio
Table of Contents
mc admin prometheus
Description
The mc admin prometheus
command generates a
configuration file for use with Prometheus.
For more complete documentation on using MinIO with Prometheus, see
How to monitor MinIO server with Prometheus
<minio-metrics-collect-using-prometheus>
Use mc admin
on MinIO Deployments Only
Syntax
generate
Generates a JWT bearer token for use with configuring Prometheus metrics collection <minio-metrics-and-alerts>
.
The command has the following syntax:
mc admin prometheus generate TARGET TYPE
The command accepts the following arguments:
TARGET
The alias <mc alias>
of a configured MinIO deployment
for which the command generates a Prometheus-compatible configuration
file.
TYPE
The type of metrics to scrape.
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 also include node metrics.