1.安装mc客户端(用于生成token)
2. 生成token
^
3.对象添加
导入模板 minio分布式对象存储 监控.xml 联系技术中心获取对应模板 添加主机
Documentation Index
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.
curl https://dl.min.io/client/mc/release/linux-amd64/mc --create-dirs -o ./mcchmod +x ./mc
cat /etc/default/minio
mc alias set monitor http://HOSTNAME:PORT ACCESS_KEY SECRET_KEY#示例:mc alias set monitor http://192.168.3.154:9100 minioadmin minioadminmc admin prometheus generate monitor#将命令结果中的scheme、targets、metrics_path、bearer_token取出,用curl命令测试token可用性curl -v -sSL -H 'Authorization: Bearer $bearer_token' $scheme://$targets/$metrics_path
^

Was this page helpful?
