Name: monasca-ceilometer
Owner: Telefónica I+D
Description: Integration between Monasca and Ceilometer
Forked from: openstack/monasca-ceilometer
Created: 2016-03-02 11:51:23.0
Updated: 2016-03-02 11:51:23.0
Pushed: 2016-10-04 07:58:55.0
Homepage: http://openstack.org
Size: 238
Language: HTML
GitHub Committers
User | Most Recent Commit | # Commits |
---|
Other Committers
User | Most Recent Commit | # Commits |
---|
Python plugin and storage driver for Ceilometer to send samples to monasca-api
To set up ceilosca automatically, read the instructions in deployer/README.md or use the included Vagrantfile
Assumes that an active monasca-api server is running.
Run devstack to get openstack installed.
Install python-monascaclient
install python-monascaclient==1.0.27
Clone monasca-ceilometer from github.com.
Copy the following files from ceilosca/ceilometer to devstack's Ceilometer location typically at /opt/stack/ceilometer
sca_client.py
age/impl_monasca.py
age/impl_monasca_filtered.py
isher/monasca_metric_filter.py
isher/monasca_data_filter.py
isher/monclient.py
s/api/v2/test_api_with_monasca_driver.py
s/storage/test_impl_monasca.py
s/test_monascaclient.py
s/publisher/test_monasca_publisher.py
s/publisher/test_monasca_data_filter.py
Edit entry_points.txt
Under [ceilometer.publisher] section add the following line:
sca = ceilometer.publisher.monclient:MonascaPublisher
Under [ceilometer.metering.storage] section add the following line:
sca = ceilometer.storage.impl_monasca_filtered:Connection
Edit setup.cfg (used at the time of installation)
Under 'ceilometer.publisher =' section add the following line:
sca = ceilometer.publisher.monclient:MonascaPublisher
Under 'ceilometer.metering.storage =' section add the following line
sca = ceilometer.storage.impl_monasca_filtered:Connection
Configure /etc/ceilometer/pipeline.yaml to send the metrics to the monasca publisher. Use the included pipeline.yaml file as an example.
Configure /etc/ceilometer/ceilometer.conf for setting up storage driver for Ceilometer API. Use ceilometer.conf file as an example.
Copy the included monasca_field_definitions.yml file to /etc/ceilometer.
This file contains configuration how to treat each field in Ceilometer sample object on per meter basis. The monasca_data_filter.py uses this file and only stores metrics, dimensions and metadata specified under their respective keys in this config file.
Make sure the user specified under service_credentials in ceilometer.conf has monasca_user role added.
Since we don't have full repo of Ceilometer, we setup the Ceilometer repo in venv and copy monasca integration files in there, and run the unit tests over that code. At present this is tested against Ceilometer stable/liberty branch, if you need to test against different branch you can change it in test-requirements.txt
Relevant files are:
Copyright (c) 2015 Hewlett-Packard Development Company, L.P.
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.