This charm provides a way to deploy Cloudkitty - Openstack Rating as a Service module - in Openstack
What is CloudKitty ?
CloudKitty is a generic solution for the chargeback and rating of a cloud. Provides a metric-based rating for cloud administrators allowing them to create rating rules to the collected data.
CloudKitty usage
With Cloudkitty, it is possible to:
Collect metrics from OpenStack (through Gnocchi).
Apply rating rules to the previous metrics.
Retrieve the rated information, grouped by scope and/or by metric type.
However, it is not possible to:
Limit resources in other OpenStack services.
Add taxes, convert between currencies, etc…
CloudKitty associates a price to a metric for a given period, the price is mapped according to end-user needs.
Configuration
Cloudkitty charm configuration options
debug to run service in debug mode change debug config value
juju config cloudkitty debug=true
region set the openstack cloud region, if value required to be changed preferably to specify in a bundle
To display all configuration option information run juju config cloudkitty. If the application is not deployed then see the charm’s
configuration file.
Please see the Juju SDK docs for guidelines
on enhancements to this charm following best practice guidelines, and
CONTRIBUTING.md for developer guidance.
Cloudkitty
Cloudkitty charm - Openstack Rating as a Service
Overview
This charm provides a way to deploy Cloudkitty - Openstack Rating as a Service module - in Openstack
What is CloudKitty ?
CloudKitty is a generic solution for the chargeback and rating of a cloud. Provides a metric-based rating for cloud administrators allowing them to create rating rules to the collected data.
CloudKitty usage
With Cloudkitty, it is possible to:
However, it is not possible to:
CloudKitty associates a price to a metric for a given period, the price is mapped according to end-user needs.
Configuration
Cloudkitty charm configuration options
debugto run service in debug mode change debug config value
regionset the openstack cloud region, if value required to be changed preferably to specify in a bundle
To display all configuration option information run
juju config cloudkitty. If the application is not deployed then see the charm’s configuration file.Deployment
Deploy cloudkitty charm
Or in a bundle
Relations
Cloudkitty charm supports the following relations.
MySQL relation - relation to mysql-operator charm - provides database storage for the cloudkitty service.
NOTE: This charm is not backward compatible with legacy
mysql-innodb-clustercharmKeystone relation - provides identity management.
Gnocchi relation - provides metrics collector service.
RabbitMQ relation - provides messages queue service.
Actions
This section lists Juju actions supported by the charm. Actions allow specific operations to be performed on a per-unit basis.
restart-servicesrestarts
cloudkitty-{api,processor}services in the unit.Usage
To interact with the service we should use the built-in openstack cloudkitty client in the openstackclients package
Check clients usage like this
First enable
hashmapmoduleThen start by creating a service called image for example
Create a field called
flavor_idas an example, and associate it with the service using the service IDMap the field with a value of the specific field, a flavor id
Create the mapping of type
flatand let’s assign a cost of1.2Finally check the summary report
TO-DO
This charm is under development not yet stable, the following list provides pending features
Enable TLS support using [TLS interface]
InfluxDB relation required for storage v2
Cloudkitty dashboard charm relation
High availability
Contributing
Please see the Juju SDK docs for guidelines on enhancements to this charm following best practice guidelines, and
CONTRIBUTING.mdfor developer guidance.Follow Openstack best practices for Software contributions in charm development.
Bugs
Please report bugs on Launchpad.
For general charm questions refer to the OpenStack Charm Guide.