Compare commits

..

No commits in common. "2a8bd629e9bd1857342c7e4deb8006e09725e90a" and "754c08862164fff0a5f9b8d45c73da30c902f3eb" have entirely different histories.

3 changed files with 2 additions and 31 deletions

View File

@ -1,21 +0,0 @@
# Minio
## Configuring Prometheus
Create a user `prometheus` with policy
```s3
{
"Version": "2012-10-17",
"Statement": [
{
"Effect": "Allow",
"Action": [
"admin:Prometheus"
]
}
]
}
```
then run `mc alias set metrics http://172.30.26.1:9000 prometheus {password} && mc admin prometheus generate metrics` and add the output into /opt/prometheus/prometheus.yml

View File

@ -7,9 +7,5 @@ docker run -d --net main_subnet --ip 172.30.26.1 \
--name=minio \
-e "MINIO_ROOT_USER=$MINIO_USER" \
-e "MINIO_ROOT_PASSWORD=$MINIO_PASSWORD" \
-e "MINIO_SERVER_URL=$MINIO_SERVER_URL" \
-e "MINIO_BROWSER_REDIRECT_URL=$MINIO_BROWSER_REDIRECT_URL" \
-e "MINIO_PROMETHEUS_URL=$PROMETHEUS_URL" \
-e "MINIO_PROMETHEUS_JOB_ID=$PROMETHEUS_JOB_ID" \
--restart unless-stopped \
quay.io/minio/minio server /data --console-address ":9090"

View File

@ -1,6 +1,2 @@
MINIO_USER="admin"
MINIO_PASSWORD=
MINIO_SERVER_URL=
MINIO_BROWSER_REDIRECT_URL=
PROMETHEUS_URL="https://user:pass@prometheus.example"
PROMETHEUS_JOB_ID=
MINIO_USER="user"
MINIO_PASSWORD="password"