按照官方文档来,准没错
```bash
PS D:\soft> .\mc.exe alias set myminio http://localhost:9000 minioadmin minioadmin
Added `myminio` successfully.
PS D:\soft> ./mc.exe admin prometheus generate myminio
scrape_configs:
- job_name: minio-job
bearer_token: eyJhbGciOiJIUzUxMiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJwcm9tZXRoZXVzIiwic3ViIjoibWluaW9hZG1pbiIsImV4cCI6NDgyNjQ5NzcwNn0.2UozeqRQMzD0g2Cug2SmjKT63NLYpowe0T--mm_-eneq8vsvKbAfzKb_H7EOf_SAupPkf8jNqdsBtqpXciCQkQ
metrics_path: /minio/v2/metrics/cluster
scheme: http
static_configs:
- targets: ['localhost:9000']
在prometheus的配置文件中添加上述配置
.\prometheus.exe --config.file=prometheus.yml
重启minio即可,记得一定得换端口号哦
.\minio.exe server D:\file --console-address ":9001"
最后如图所示,就可以展现prometheus的监控画面了