Giter Club home page Giter Club logo

belka's Introduction

Belka

Belka is your tool to explore your OpenStack based cloud and return valuable machine readable statistics.

Usage

Belka can be used as follows:

$ belka -h
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

The compute subcommand provides further options:

$ belka help compute
usage: belka compute [-h] [--noheader] [--noindividual] [--noaggregate]
                     [--syslog] [--identifier IDENTIFIER]

Query compute nodes for statistics

optional arguments:
  -h, --help            show this help message and exit
  --noheader, -r        Do not print header line
  --noindividual, -i    Do not print individual hypervisor stats
  --noaggregate, -a     Do not summarize hypervisor stats
  --syslog, -s          Send to syslog instead of stdout
  --identifier IDENTIFIER, -d IDENTIFIER
                        identifier string to be included in output

Features

Compute

Belka will query your Nova cluster to find the following stats per hypervisor:

  • memory_mb
  • current_workload
  • vcpus
  • running_vms
  • vcpus_used
  • memory_mb_used
  • hypervisor_hostname

It can also summarize this information.

Here is an example run of belka:

$ belka compute
2013-03-26 05:59:37.166783,memory_mb,current_workload,vcpus,running_vms,vcpus_used,memory_mb_used,hypervisor_hostname
2013-03-26 05:59:37.604805,128916,0,32,1,1,10752,c13.b0.z1
2013-03-26 05:59:37.604881,128916,0,32,1,1,4772,c10.b0.z1
2013-03-26 05:59:37.604951,128915,0,32,0,0,3072,c9.b0.z1
2013-03-26 05:59:37.605020,128915,0,32,1,2,10752,c12.b0.z1
2013-03-26 05:59:37.605089,128916,0,32,0,0,3072,c11.b0.z1
2013-03-26 05:59:37.666876,644578,0,160,3,4,32420,AllHosts

Storage

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

Usage

Belka can be used as follows:

$ belka -h
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

The compute subcommand provides further options:

$ belka help compute
usage: belka compute [-h] [--noheader] [--noindividual] [--noaggregate]
                     [--syslog] [--identifier IDENTIFIER]

Query compute nodes for statistics

optional arguments:
  -h, --help            show this help message and exit
  --noheader, -r        Do not print header line
  --noindividual, -i    Do not print individual hypervisor stats
  --noaggregate, -a     Do not summarize hypervisor stats
  --syslog, -s          Send to syslog instead of stdout
  --identifier IDENTIFIER, -d IDENTIFIER
                        identifier string to be included in output

License

Copyright (c) 2013 Solinea, Inc. ([email protected])

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.

belka's People

Contributors

slashk avatar

Stargazers

 avatar  avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.