MiniO and Prometheus on QNAP Docker (Container) | GOLINE
Goline Logo

FAQ

News

  • In the supply and logistics sectors, email communication is pivotal. However, organizations face threats like email fraud and phishing. GOLINE SA's clients struggled with configuring email authentication protocols manually. To address this challenge, GOLINE SA became an MSP Partner of PowerDMARC, collaborating to streamline implementation and management. PowerDMARC's cloud-based platform automated DMARC, SPF, and DKIM protocols for GOLINE SA's clients. This streamlined the transition to DMARC enforcement policies, bolstering domain protection without compromising email deliverability. The intuitive platform facilitated easy navigation and provided detailed reporting for proactive issue resolution. GOLINE SA's clients experienced tangible benefits: Enhanced Email Security: Automated protocols...
  • Route RPKI validation April 1st, 2022
    RPKI is a security framework by which network owners can validate and secure the critical route updates or Border Gateway Protocol (BGP) announcements between public Internet networks. BGP is essentially the central nervous system of the Internet and one of its fundamental building blocks. The main function of BGP is to facilitate efficient routing between Autonomous Systems (AS), by building and maintaining the Internet routing table. The Internet routing table is effectively the navigation system of the Internet and without it, traffic would be unable to flow between its constituent networks. Unfortunately, routing equipment alone cannot distinguish between legitimate and malicious routing announcements,...
  • RIPE – Atlas Anchor February 17th, 2022
    We have become an even more integral part of the RIPE Atlas project by hosting an anchor, a device that allows for latency analysis of traffic between autonomous systems.https://atlas.ripe.net/probes/7073/RIPE Atlas anchors play an integral role in the RIPE Atlas network by acting both as enhanced RIPE Atlas probes with more measurement capacity, as well as regional measurement targets within the greater RIPE Atlas network. Anchors are able to perform many more measurements than a regular RIPE Atlas probe, and the large amount of data they collect is made available to everyone. In addition, anchors act as powerful targets that can...

MiniO and Prometheus on QNAP Docker (Container)

Caparrelli Paolo Linux 12 September 2024

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

0 0 votes
Article Rating
Subscribe
Notify of
0 Comments
Oldest
Newest Most Voted
Inline Feedbacks
View all comments
0
Would love your thoughts, please comment.x
()
x