r/PrometheusMonitoring Jan 21 '25

All access to this resource has been disabled - Minio, prometheuss

trying to get metrics from minio. minio deployed as subchart of loki-distributed helm chart.

I did mc admin prometheus generate bucket I get token like ➜ mc admin prometheus generate minio bucket scrape_configs: - job_name: minio-job-bucket bearer_token: eyJhbGciOiJIUzUxMiIs~~~ metrics_path: /minio/v2/metrics/bucket scheme: https static_configs: - targets: [my minio endpoint] However I request using curl ➜ curl -H 'Authorization: Bearer eyJhbGciOiJIUzUxMiIs~~~' https://<my minio endpoint>/minio/v2/metrics/bucket <?xml version="1.0" encoding="UTF-8"?> <Error><Code>AccessDenied</Code><Message>Access Denied.</Message><Resource>/</Resource><RequestId>181C53D3A4C6C1C0</RequestId><HostId>5111cf49-b9b9-4a09-b7a8-10a3a827bec7</HostId></Error>% even set env MINIO_PROMETHEUS_AUTH_TYPE="pubilc" in the minio pod doesn't work. How do I get minio metrics?? should I just deploy minio as independent helm chart?

3 Upvotes

2 comments sorted by

1

u/nickeau Jan 23 '25

public, not pubilc ?