mirror of
https://github.com/minio/minio.git
synced 2025-11-25 20:16:10 -05:00
feat: allow prometheus for only authorized users (#12121)
allow restrictions on who can access Prometheus endpoint, additionally add prometheus as part of diagnostics canned policy. Signed-off-by: Harshavardhana <harsha@minio.io>
This commit is contained in:
@@ -76,7 +76,9 @@ var AdminDiagnostics = Policy{
|
||||
Actions: NewActionSet(ProfilingAdminAction,
|
||||
TraceAdminAction, ConsoleLogAdminAction,
|
||||
ServerInfoAdminAction, TopLocksAdminAction,
|
||||
HealthInfoAdminAction, BandwidthMonitorAction),
|
||||
HealthInfoAdminAction, BandwidthMonitorAction,
|
||||
PrometheusAdminAction,
|
||||
),
|
||||
Resources: NewResourceSet(NewResource("*", "")),
|
||||
},
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user