Skip to main content

MiniO and Prometheus on QNAP Docker (Container)

Caparrelli Paolo Linux 12 September 2024

MiniO configuration & Installation

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

Visit our FAQ for more information Get more info about Goline
60 / 100 SEO Score
0 0 votes
Article Rating
Subscribe
Notify of

0 Comments
Oldest
Newest Most Voted
Goline It Services Logo

News

  • GOLINE SA is excited to announce a new partnership with NetApp, a global leader in cloud data services and storage solutions. This collaboration aims to help organizations modernize their IT infrastructure, streamline data management, and enhance performance across cloud and hybrid environments. Modern Data Solutions for Businesses Through this partnership, GOLINE integrates advanced data management solutions, enabling businesses to securely store, manage, and access critical information across cloud, on-premises, or hybrid setups. Clients can benefit from: Flexible and scalable storage solutions to meet growing data needs Simplified management of cloud and on-premises environments Enterprise-grade security for sensitive and mission-critical data...
  • GOLINE SA is proud to announce a new strategic partnership with Omnissa, a global leader in digital workspace platforms and Horizon Cloud Service solutions. This collaboration marks a significant step forward in helping organizations embrace secure, flexible, and high-performance work environments. Why Choose Omnissa for Your Business? The platform enables virtual desktops, applications, and unified endpoint management. Organizations can deploy scalable workspaces across cloud, hybrid, or on-premises setups. Key benefits include: Easy access to desktops and apps on any device Centralized management for Windows, macOS, iOS, Android, and ChromeOS Strong security with access controls and multi-factor authentication Automated scaling to...
  • Goline is proud to announce a strategic partnership with Cloudflare, the world leader in web performance and security solutions. This collaboration aims to provide goline.ch customers with state-of-the-art protection against cyber threats while delivering lightning-fast website performance. Through this partnership, Goline integrates Cloudflare’s advanced services, including DDoS protection, CDN caching, DNS security, and edge computing, allowing businesses to secure and optimize their websites effortlessly. Users will benefit from improved page load speed, enhanced reliability, and robust defense against malicious attacks. This partnership with Cloudflare enables goline to offer unmatched security and performance solutions to clients. By leveraging Cloudflare’s cutting-edge technology,...
0
Would love your thoughts, please comment.x
()
x