MiniO configuration & Installation
sudo mkdir -p /share/CACHEDEV1_DATA/MiniOData
sudo chown -R admin:administrators /share/CACHEDEV1_DATA/MiniOData
sudo chmod -R 775 /share/CACHEDEV1_DATA/MiniOData
sudo mkdir -p /share/CACHEDEV1_DATA/MiniOData/certs
sudo chmod -R 775 /share/CACHEDEV1_DATA/MiniOData/certs
cat > /share/CACHEDEV1_DATA/MiniOData/certs/public.crt << EOF
—–BEGIN CERTIFICATE—–
[Paste your public certificate here]
—–END CERTIFICATE—–
EOF
cat > /share/CACHEDEV1_DATA/MiniOData/certs/private.key << EOF
—–BEGIN PRIVATE KEY—–
[Paste your private key here]
—–END PRIVATE KEY—–
EOF
sudo chmod 600 /share/CACHEDEV1_DATA/MiniOData/certs/public.crt
sudo chmod 600 /share/CACHEDEV1_DATA/MiniOData/certs/private.key
sudo docker stop MiniO
sudo docker rm MiniO
sudo docker run -d
–restart=always
-p 9000:9000
-p 9001:9001
–name MiniO
-e MINIO_ROOT_USER=root
-e MINIO_ROOT_PASSWORD=<your-minio-root-password>
-e MINIO_REGION_NAME=eu-central-2
-e MINIO_PROMETHEUS_URL=http://<your-prometheus-url>:9090
-v /share/CACHEDEV1_DATA/MiniOData:/data
-v /share/CACHEDEV1_DATA/MiniOData/certs:/root/.minio/certs
minio/minio server /data
–console-address :9001
Prometheus configuration & Installation
Install mc for MiniO and generate bearer forPrometheus
wget https://dl.min.io/client/mc/release/linux-amd64/mc
sudo docker cp mc MiniO:/usr/local/bin/mc
docker exec -it MiniO sh
mc alias set myminio https://<your-service-point>:9000 root <your-minio-root-password> –insecure
mc admin prometheus generate myminio
sudo mkdir -p /share/CACHEDEV1_DATA/Prometheus
sudo vi /share/CACHEDEV1_DATA/Prometheus/prometheus.yml
Sample `prometheus.yml` configuration file:
global:
scrape_interval: 15s
scrape_timeout: 10s
scrape_configs:
- job_name: 'minio-job'
scrape_interval: 15s
scrape_timeout: 10s
metrics_path: /minio/v2/metrics/cluster
scheme: https
bearer_token: <YOUR_BEARER_TOKEN>
tls_config:
insecure_skip_verify: true
static_configs:
- targets:
- <your-service-point>:9000
Replace `<YOUR_BEARER_TOKEN>` with the Bearer token generated by MinIO.
Verify files permissions:
chmod 644 /share/CACHEDEV1_DATA/prometheus-config/prometheus.yml
chmod 755 /share/CACHEDEV1_DATA/prometheus-config
Stop, remove and recreate Prometheus docker:
sudo docker stop prometheus
sudo docker rm prometheus
sudo docker run -d
–name prometheus
–restart=always
-p 9090:9090
-v /share/CACHEDEV1_DATA/Prometheus/prometheus.yml:/prometheus.yml
prom/prometheus
–config.file=/prometheus.yml
UPDATE MinIO on QNAP Container (Docker)
mc alias set myminio http://<your-service-point>:9000 root <your-minio-root-password>
mc admin update myminio –yes