Belka is your tool to explore your OpenStack based cloud and return valuable machine readable statistics.
Features
Compute
Belka will query your Nova cluster to find the following statistics per hypervisor:
- memory_mb
- current_workload
- vcpus
- running_vms
- vcpus_used
- memory_mb_used
- hypervisor_hostname
It can also summarize this information for the entire cluster.
Object Storage
Belka can query your Swift cluster to find the following statistics per tenant:
- containers
- objects
- bytes
It can also summarize this information for the entire cluster.
Usage
Belka can be used as follows:
$ belka --help
usage: belka [--version] [-v] [--log-file LOG_FILE] [-q] [-h] [--debug]
belka
optional arguments:
--version show program's version number and exit
-v, --verbose Increase verbosity of output. Can be repeated.
--log-file LOG_FILE Specify a file to log output. Disabled by default.
-q, --quiet suppress output except warnings and errors
-h, --help show this help message and exit
--debug show tracebacks on errors
Commands:
compute Query compute nodes for statistics
help print detailed help for another command
objectstorage Query object storage for usage statistics`
Installation
Storage requires a user that has the keystone "ResellerAdmin" role. You can add this to your "admin" user with the following command:
$ keystone user-role-add --user admin --role ResellerAdmin --tenant admin
License
Copyright (c) 2013 Solinea, Inc. (code@solinea.com)
Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.