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.
This commit is contained in:
@@ -218,3 +218,10 @@ vmagent_scrape_configs:
|
|||||||
static_configs:
|
static_configs:
|
||||||
- targets:
|
- targets:
|
||||||
- burp.pyrocufflink.blue:9645
|
- burp.pyrocufflink.blue:9645
|
||||||
|
|
||||||
|
- job_name: minio-backups
|
||||||
|
metrics_path: /minio/v2/metrics/cluster
|
||||||
|
scheme: https
|
||||||
|
static_configs:
|
||||||
|
- targets:
|
||||||
|
- burp.pyrocufflink.blue:9000
|
||||||
|
|||||||
@@ -2,3 +2,5 @@ MINIO_ROOT_USER={{ minio_root_user }}
|
|||||||
MINIO_ROOT_PASSWORD={{ minio_root_password }}
|
MINIO_ROOT_PASSWORD={{ minio_root_password }}
|
||||||
|
|
||||||
MINIO_CONSOLE_ADDRESS={{ minio_console_address }}
|
MINIO_CONSOLE_ADDRESS={{ minio_console_address }}
|
||||||
|
|
||||||
|
MINIO_PROMETHEUS_AUTH_TYPE=public
|
||||||
|
|||||||
Reference in New Issue
Block a user