Hello all,
I've created prometheus exporter that scrapes the RADOSGW Admin Ops API and exports the usage information for all users and buckets. This is my first prometheus exporter so if anyone has feedback I'd greatly appreciate it. I've tested it against Hammer, and will shortly test against Jewel; though looking at the docs it should work fine for Jewel as well.
Sample output:
radosgw_usage_successful_ops_total{bucket="shard0",category="create_bucket",owner="testuser"} 1.0
radosgw_usage_successful_ops_total{bucket="shard0",category="delete_obj",owner="testuser"} 1094978.0
radosgw_usage_successful_ops_total{bucket="shard0",category="list_bucket",owner="testuser"} 2276.0
radosgw_usage_successful_ops_total{bucket="shard0",category="put_obj",owner="testuser"} 1094978.0
radosgw_usage_successful_ops_total{bucket="shard0",category="stat_bucket",owner="testuser"} 20.0
radosgw_usage_received_bytes_total{bucket="shard0",category="create_bucket",owner="testuser"} 0.0
radosgw_usage_received_bytes_total{bucket="shard0",category="delete_obj",owner="testuser"} 0.0
radosgw_usage_received_bytes_total{bucket="shard0",category="list_bucket",owner="testuser"} 0.0
radosgw_usage_received_bytes_total{bucket="shard0",category="put_obj",owner="testuser"} 6352678.0
radosgw_usage_received_bytes_total{bucket="shard0",category="stat_bucket",owner="testuser"} 0.0
radosgw_usage_sent_bytes_total{bucket="shard0",category="create_bucket",owner="testuser"} 19.0
radosgw_usage_sent_bytes_total{bucket="shard0",category="delete_obj",owner="testuser"} 0.0
radosgw_usage_sent_bytes_total{bucket="shard0",category="list_bucket",owner="testuser"} 638339458.0
radosgw_usage_sent_bytes_total{bucket="shard0",category="put_obj",owner="testuser"} 79.0
radosgw_usage_sent_bytes_total{bucket="shard0",category="stat_bucket",owner="testuser"} 380.0
radosgw_usage_ops_total{bucket="shard0",category="create_bucket",owner="testuser"} 1.0
radosgw_usage_ops_total{bucket="shard0",category="delete_obj",owner="testuser"} 1094978.0
radosgw_usage_ops_total{bucket="shard0",category="list_bucket",owner="testuser"} 2276.0
radosgw_usage_ops_total{bucket="shard0",category="put_obj",owner="testuser"} 1094979.0
radosgw_usage_ops_total{bucket="shard0",category="stat_bucket",owner="testuser"} 20.0
Thanks,
Berant
_______________________________________________ ceph-users mailing list ceph-users@xxxxxxxxxxxxxx http://lists.ceph.com/listinfo.cgi/ceph-users-ceph.com