stats
Get statistics of the cluster and servers.
Get a graph by name.
See resources/statistics/graphite-queries.yml for available graphs.
Some queries like server-specific stats expect template parameter which are passed with
template-{name}
query parameters. Example:
/stats?graph=server-disk-load&startTime=-600&maxDataPoints=50&template-server-id=1
startTime and endTime should be in the same format, i.e., either both > 0 or both <= 0
{
"name": "string",
"axis1": {
"unit": "IOPS",
"graphs": [
{
"name": "string",
"tags": {
"additionalProp1": "string",
"additionalProp2": "string",
"additionalProp3": "string"
},
"datapoints": [
{
"t": 0,
"v": 0
}
]
}
]
},
"axis2": {
"unit": "IOPS",
"graphs": [
{
"name": "string",
"tags": {
"additionalProp1": "string",
"additionalProp2": "string",
"additionalProp3": "string"
},
"datapoints": [
{
"t": 0,
"v": 0
}
]
}
]
},
"description": "string"
}
Get available Ceph pools for statistics.
Parameters[
{
"queryName": "string",
"quotaBytes": 0,
"description": "string",
"displayName": "string",
"quotaObjects": 0
}
]
Get available server names for statistics.
[
{
"id": 0,
"hostname": "string"
}
]
Get available S3 users for statistics.
This API is somewhat expensive if there are a lot of S3 users, don't call this too often.
[
{
"queryName": "string",
"displayName": "string"
}
]
Get the Rbd images that are monitored for statistics.
[
{
"rbdName": "string",
"poolName": "string",
"namespace": "string"
}
]
Set the Rbd images that are monitored for statistics.
Replaces the currently configured set of Rbd images.
Parameters[
{
"rbdName": "string",
"poolName": "string",
"namespace": "string"
}
]
Add images to the set of monitored Rbds.
Parameters[
{
"rbdName": "string",
"poolName": "string",
"namespace": "string"
}
]
Remove images from the set of monitored Rbds.
Parameters[
{
"rbdName": "string",
"poolName": "string",
"namespace": "string"
}
]
Get available S3 buckets for statistics.
[
{
"queryName": "string",
"quotaBytes": 0,
"displayName": "string",
"quotaObjects": 0
}
]
Get CephFS directories that are monitored for statistics.
[
{
"queryName": "string",
"quotaBytes": 0,
"quotaFiles": 0,
"displayName": "string"
}
]
Set the CephFS directories that are monitored for statistics.
Replaces the currently configured set of directories.
Parameters[
"string"
]