metricspi: Scrape metrics from MinIO backup storage

MinIO exposes metrics in Prometheus exposition format.  By default, it
requires an authentication token to access the metrics, but I was unable
to get this to work.  Fortunately, it can be configured to allow
anonymous access to the metrics, which is fine, in my opinion.
step-ssh
Dustin 2023-05-22 21:19:25 -05:00
parent 2c002aa7c5
commit c0bb387b18
2 changed files with 9 additions and 0 deletions

View File

@ -218,3 +218,10 @@ vmagent_scrape_configs:
static_configs:
- targets:
- burp.pyrocufflink.blue:9645
- job_name: minio-backups
metrics_path: /minio/v2/metrics/cluster
scheme: https
static_configs:
- targets:
- burp.pyrocufflink.blue:9000

View File

@ -2,3 +2,5 @@ MINIO_ROOT_USER={{ minio_root_user }}
MINIO_ROOT_PASSWORD={{ minio_root_password }}
MINIO_CONSOLE_ADDRESS={{ minio_console_address }}
MINIO_PROMETHEUS_AUTH_TYPE=public