Feature #44732
mgr/prometheus: Expose object storage users quotas and usage
Status:
New
Priority:
Normal
Assignee:
-
Category:
prometheus module
Target version:
-
% Done:
0%
Source:
Tags:
Backport:
Reviewed:
Affected Versions:
Pull request ID:
Tags:
Description
It's possible to use `radosgw-admin` commands to query for a Ceph Object Storage user's quota and usage. It would be great to get this information available to Prometheus :)
e.g.
$ sudo radosgw-admin user info --uid=prometheus | jq .user_quota { "enabled": true, "check_on_raw": false, "max_size": 2147483648000, "max_size_kb": 2097152000, "max_objects": -1 }
and
$ sudo radosgw-admin user stats --uid=prometheus { "stats": { "total_entries": 36, "total_bytes": 455580945824, "total_bytes_rounded": 455581016064 }, "last_stats_sync": "2020-03-23 23:12:35.254193Z", "last_stats_update": "2020-03-23 23:12:35.241044Z" }
This would allow us to create alerts when a) users are nearing their quota and b) when they've reached their quota.
History
#1 Updated by Lenz Grimmer almost 4 years ago
- Tags set to administration, rgw, monitoring
- Subject changed from Expose object storage users quotas and usage to mgr/prometheus: Expose object storage users quotas and usage
#2 Updated by Konstantin Shalygin over 3 years ago
Currently this implemented in this exporter.
Query per user is slow, to be implemented RGW API should have "all users stats" query. Currently is only per user possible.