Repository navigation
tools/rgw: add rgw-export-bucket-usage - #66671
Conversation
|
tested by creating two buckets named "testbucket", one as the vstart user "testid", and one as vstart tenanted user "testx$9876543210abcdef0123456789abcdef0123456789abcdef0123456789abcdef". i uploaded one object to the first bucket only, meaning that usage information for the second bucket was empty: |
f873aff to
17382a5
Compare
2ad73ef to
ca415ab
Compare
ca415ab to
7b07550
Compare
an experimental bash script that converts 'radosgw-admin bucket stats' output into prometheus labeled metrics, then pushes them to prometheus pushgateway as documented in https://github.com/prometheus/pushgateway/ rgw-format-bucket-usage was split out for testing the output for different buckets, users, and tenants Signed-off-by: Casey Bodley <[email protected]>
in addition to bucket_quota metrics from 'radosgw-admin bucket stats', include owner_quota metrics by listing and reading all users and accounts while the bucket_quota metrics are useful when filtering bucket_usage by a bucket label, the owner_quota metrics are more useful when filtering bucket_usage by an owner label while all of the bucket_quota metrics can be fetched in a single radosgw-admin command, the owner quota metrics must be fetched with a separate radosgw-admin command for each individual user/account. this may take considerably longer Signed-off-by: Casey Bodley <[email protected]>
Signed-off-by: Casey Bodley <[email protected]>
7b07550 to
23fc5fb
Compare
|
This pull request has been automatically marked as stale because it has not had any activity for 60 days. It will be closed if no further activity occurs for another 30 days. |
removed this TODO item - the PROMETHEUS_PUSHGATEWAY_ENDPOINT environment variable is sufficient. the caller can 'ceph orch ls' or whatever else to supply that variable |
Add metrics_push_enabled, metrics_push_interval, and metrics_push_timeout to RGWSpec. When enabled, cephadm deploys a systemd timer that periodically exec's into the RGW container, runs rgw-export-bucket-usage, and pushes per-bucket usage metrics to a discovered pushgateway endpoint. Timer and associated units are cleaned up on daemon removal. Depends-on: ceph#66671 Fixes: https://tracker.ceph.com/issues/81767 Signed-off-by: Ujjawal Anand <[email protected]>
Add metrics_push_enabled, metrics_push_interval, and metrics_push_timeout to RGWSpec. When enabled, cephadm deploys a systemd timer that periodically exec's into the RGW container, runs rgw-export-bucket-usage, and pushes per-bucket usage metrics to a discovered pushgateway endpoint. Timer and associated units are cleaned up on daemon removal. Depends-on: ceph#66671 Fixes: https://tracker.ceph.com/issues/81767 Signed-off-by: Ujjawal Anand <[email protected]>
Add metrics_push_enabled, metrics_push_interval, and metrics_push_timeout to RGWSpec. When enabled, cephadm deploys a systemd timer that periodically exec's into the RGW container, runs rgw-export-bucket-usage, and pushes per-bucket usage metrics to a discovered pushgateway endpoint. Timer and associated units are cleaned up on daemon removal. Depends-on: ceph#66671 Fixes: https://tracker.ceph.com/issues/81767 Signed-off-by: Ujjawal Anand <[email protected]>
Add metrics_push_enabled, metrics_push_interval, and metrics_push_timeout to RGWSpec. When enabled, cephadm deploys a systemd timer that periodically exec's into the RGW container, runs rgw-export-bucket-usage, and pushes per-bucket usage metrics to a discovered pushgateway endpoint. Timer and associated units are cleaned up on daemon removal. Depends-on: ceph#66671 Fixes: https://tracker.ceph.com/issues/81767 Signed-off-by: Ujjawal Anand <[email protected]>
Add metrics_push_enabled, metrics_push_interval, and metrics_push_timeout to RGWSpec. When enabled, cephadm deploys a systemd timer that periodically exec's into the RGW container, runs rgw-export-bucket-usage, and pushes per-bucket usage metrics to a discovered pushgateway endpoint. Timer and associated units are cleaned up on daemon removal. Depends-on: ceph#66671 Fixes: https://tracker.ceph.com/issues/81767 Signed-off-by: Ujjawal Anand <[email protected]>
aaSharma14
left a comment
There was a problem hiding this comment.
I have tested this PR locally, works as expected.
Add metrics_push_enabled, metrics_push_interval, and metrics_push_timeout to RGWSpec. When enabled, cephadm deploys a systemd timer that periodically exec's into the RGW container, runs rgw-export-bucket-usage, and pushes per-bucket usage metrics to a discovered pushgateway endpoint. Timer and associated units are cleaned up on daemon removal. Depends-on: ceph#66671 Fixes: https://tracker.ceph.com/issues/81767 Signed-off-by: Ujjawal Anand <[email protected]>
Add metrics_push_enabled, metrics_push_interval, and metrics_push_timeout to RGWSpec. When enabled, cephadm deploys a systemd timer that periodically exec's into the RGW container, runs rgw-export-bucket-usage, and pushes per-bucket usage metrics to a discovered pushgateway endpoint. Timer and associated units are cleaned up on daemon removal. Depends-on: ceph#66671 Fixes: https://tracker.ceph.com/issues/81767 Signed-off-by: Ujjawal Anand <[email protected]>
Add metrics_push_enabled, metrics_push_interval, and metrics_push_timeout to RGWSpec. When enabled, cephadm deploys a systemd timer that periodically exec's into the RGW container, runs rgw-export-bucket-usage, and pushes per-bucket usage metrics to a discovered pushgateway endpoint. Timer and associated units are cleaned up on daemon removal. Depends-on: ceph#66671 Fixes: https://tracker.ceph.com/issues/81767 Signed-off-by: Ujjawal Anand <[email protected]>
Add metrics_push_enabled, metrics_push_interval, and metrics_push_timeout to RGWSpec. When enabled, cephadm deploys a systemd timer that periodically exec's into the RGW container, runs rgw-export-bucket-usage, and pushes per-bucket usage metrics to a discovered pushgateway endpoint. Timer and associated units are cleaned up on daemon removal. Depends-on: ceph#66671 Fixes: https://tracker.ceph.com/issues/81767 Signed-off-by: Ujjawal Anand <[email protected]>
Add metrics_push_enabled, metrics_push_interval, and metrics_push_timeout to RGWSpec. When enabled, cephadm deploys a systemd timer that periodically exec's into the RGW container, runs rgw-export-bucket-usage, and pushes per-bucket usage metrics to a discovered pushgateway endpoint. Timer and associated units are cleaned up on daemon removal. Depends-on: ceph#66671 Fixes: https://tracker.ceph.com/issues/81767 Signed-off-by: Ujjawal Anand <[email protected]>
Add metrics_push_enabled, metrics_push_interval, and metrics_push_timeout to RGWSpec. When enabled, cephadm deploys a systemd timer that periodically exec's into the RGW container, runs rgw-export-bucket-usage, and pushes per-bucket usage metrics to a discovered pushgateway endpoint. Timer and associated units are cleaned up on daemon removal. Depends-on: ceph#66671 Fixes: https://tracker.ceph.com/issues/81767 Signed-off-by: Ujjawal Anand <[email protected]>
Add metrics_push_enabled, metrics_push_interval, and metrics_push_timeout to RGWSpec. When enabled, cephadm deploys a systemd timer that periodically exec's into the RGW container, runs rgw-export-bucket-usage, and pushes per-bucket usage metrics to a discovered pushgateway endpoint. Timer and associated units are cleaned up on daemon removal. Depends-on: ceph#66671 Fixes: https://tracker.ceph.com/issues/81767 Signed-off-by: Ujjawal Anand <[email protected]>
Add metrics_push_enabled, metrics_push_interval, and metrics_push_timeout to RGWSpec. When enabled, cephadm deploys a systemd timer that periodically exec's into the RGW container, runs rgw-export-bucket-usage, and pushes per-bucket usage metrics to a discovered pushgateway endpoint. Timer and associated units are cleaned up on daemon removal. Depends-on: ceph#66671 Fixes: https://tracker.ceph.com/issues/81767 Signed-off-by: Ujjawal Anand <[email protected]>
Add metrics_push_enabled, metrics_push_interval, and metrics_push_timeout to RGWSpec. When enabled, cephadm deploys a systemd timer that periodically exec's into the RGW container, runs rgw-export-bucket-usage, and pushes per-bucket usage metrics to a discovered pushgateway endpoint. Timer and associated units are cleaned up on daemon removal. Depends-on: ceph#66671 Fixes: https://tracker.ceph.com/issues/81767 Signed-off-by: Ujjawal Anand <[email protected]>
Add metrics_push_enabled, metrics_push_interval, and metrics_push_timeout to RGWSpec. When enabled, cephadm deploys a systemd timer that periodically exec's into the RGW container, runs rgw-export-bucket-usage, and pushes per-bucket usage metrics to a discovered pushgateway endpoint. Timer and associated units are cleaned up on daemon removal. Depends-on: ceph#66671 Fixes: https://tracker.ceph.com/issues/81767 Signed-off-by: Ujjawal Anand <[email protected]>
Add metrics_push_enabled, metrics_push_interval, and metrics_push_timeout to RGWSpec. When enabled, cephadm deploys a systemd timer that periodically exec's into the RGW container, runs rgw-export-bucket-usage, and pushes per-bucket usage metrics to a discovered pushgateway endpoint. Timer and associated units are cleaned up on daemon removal. Depends-on: ceph#66671 Fixes: https://tracker.ceph.com/issues/81767 Signed-off-by: Ujjawal Anand <[email protected]> Co-authored-by: Cursor <[email protected]>
Add metrics_push_enabled, metrics_push_interval, and metrics_push_timeout to RGWSpec. When enabled, cephadm deploys a systemd timer that periodically exec's into the RGW container, runs rgw-export-bucket-usage, and pushes per-bucket usage metrics to a discovered pushgateway endpoint. Timer and associated units are cleaned up on daemon removal. Depends-on: ceph#66671 Fixes: https://tracker.ceph.com/issues/81767 Signed-off-by: Ujjawal Anand <[email protected]> Co-authored-by: Cursor <[email protected]>
Add metrics_push_enabled, metrics_push_interval, and metrics_push_timeout to RGWSpec. When enabled, cephadm deploys a systemd timer that periodically exec's into the RGW container, runs rgw-export-bucket-usage, and pushes per-bucket usage metrics to a discovered pushgateway endpoint. Timer and associated units are cleaned up on daemon removal. Depends-on: ceph#66671 Fixes: https://tracker.ceph.com/issues/81767 Signed-off-by: Ujjawal Anand <[email protected]> Co-authored-by: Cursor <[email protected]>
Add metrics_push_enabled, metrics_push_interval, and metrics_push_timeout to RGWSpec. When enabled, cephadm deploys a systemd timer that periodically exec's into the RGW container, runs rgw-export-bucket-usage, and pushes per-bucket usage metrics to a discovered pushgateway endpoint. Timer and associated units are cleaned up on daemon removal. Depends-on: ceph#66671 Fixes: https://tracker.ceph.com/issues/81767 Signed-off-by: Ujjawal Anand <[email protected]>
an experimental bash script that converts 'radosgw-admin bucket stats' output into prometheus labeled metrics, then pushes them to prometheus pushgateway as documented in https://github.com/prometheus/pushgateway/
rgw-format-bucket-usage was split out for testing the output for different buckets, users, and tenants
TODO:
Show available Jenkins commands
jenkins test classic perfJenkins Job | Jenkins Job Definitionjenkins test crimson perfJenkins Job | Jenkins Job Definitionjenkins test signedJenkins Job | Jenkins Job Definitionjenkins test make checkJenkins Job | Jenkins Job Definitionjenkins test make check arm64Jenkins Job | Jenkins Job Definitionjenkins test submodulesJenkins Job | Jenkins Job Definitionjenkins test dashboardJenkins Job | Jenkins Job Definitionjenkins test dashboard cephadmJenkins Job | Jenkins Job Definitionjenkins test apiJenkins Job | Jenkins Job Definitionjenkins test docsReadTheDocs | Github Workflow Definitionjenkins test ceph-volume allJenkins Jobs | Jenkins Jobs Definitionjenkins test windowsJenkins Job | Jenkins Job Definitionjenkins test rook e2eJenkins Job | Jenkins Job DefinitionYou must only issue one Jenkins command per-comment. Jenkins does not understand
comments with more than one command.