|Zuul 6487f4510c||3 hours ago|
|ceilosca||1 month ago|
|devstack||7 months ago|
|etc/ceilometer||11 months ago|
|releasenotes/notes||6 months ago|
|tools||1 year ago|
|.gitignore||1 year ago|
|.gitreview||1 year ago|
|.stestr.conf||1 year ago|
|.zuul.yaml||6 months ago|
|LICENSE||3 years ago|
|README.rst||3 days ago|
|mkdocs.yml||4 years ago|
|monasca_test_setup.py||1 year ago|
|setup.cfg||6 months ago|
|setup.py||2 years ago|
|test-requirements.txt||3 hours ago|
|tox.ini||1 month ago|
Python plugin and storage driver for Ceilometer to send samples to monasca-api. Also known as Ceilosca.
Ceilosca is DEPRECATED as of the Ussuri OpenStack release. The functionality of Ceilosca is now found in Ceilometer as the Monasca Publisher option. This closer integration will make it easier to deploy and connect Ceilometer to Monasca. To support older versions and follow OpenStack deprecation policies, this repository will continue to be maintained, but new deployments are encouraged to determine if the metrics required are available directly in Monasca, or use the Monasca Publisher.
To set up Ceilosca automatically, read the instructions in devstack/README.md or use the included Vagrantfile
Assumes that an active monasca-api server is running after installing DevStack.
Not all Ceilometer components are required. The following may be disabled in
local.confif using an older Ceilometer release. :
disable_service ceilometer-alarm-notifier disable_service ceilometer-alarm-evaluator disable_service ceilometer-collector
- Panko and Aodh from the Telemetry project are not required, as Monasca will be providing these types of services.
Gnocchi is also not required, as Monasca uses a configured Time-Series Database for measurement storage.
Gnocchi installation in DevStack may be skipped by setting the following in
pip install python-monascaclient
Copy the following files from
ceilosca/ceilometer to devstack’s ceilometer location, typically at
monasca_client.py monasca_opts.py opts.py publisher/monasca_data_filter.py publisher/monasca.py tests/* (skipping the init.py files)
setup.cfg (used at the time of installation)
Under ‘ceilometer.sample.publisher =’ section add the following line:
monasca = ceilometer.publisher.monasca:MonascaPublisher
/etc/ceilometer/pipeline.yamlto send the metrics to the monasca publisher. Use the included
monasca-ceilometer/etc/ceilometer/pipeline.yamlfile as an example.
/etc/ceilometer/ceilometer.conffor setting up storage driver for Ceilometer. Use the included
monasca-ceilometer/etc/ceilometer/ceilometer.conffile as an example.
Copy the included
monasca_field_definitions.yml file from
monasca_field_definitions.yaml 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 the fields that are specified in this config file.
ceilometer.confhas monasca_user role added.
Since we don’t have a 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/pike branch, if you need to test against different branch you can change it in test-requirements.txt
Relevant files are:
From time to time, Ceilometer introduces new meters. The list of currently supported measurements can be found at https://docs.openstack.org/ceilometer/ussuri/admin/telemetry-measurements.html (which is generated from https://github.com/openstack/ceilometer/blob/master/doc/source/admin/telemetry-measurements.rst).
Some meters require additional configuration in Ceilometer. For example, the SDN pollster meters need specialized drivers. For more information about how Ceilometer collects meters through polling or collecting, please reference the Telemetry documentation and measurements.
As with Ceilometer, the list of meters to be published is specified in
As metering data accumulates over time, it is recommended that Ceilometer be configured to only publish meters where the customer has a need for the data. Additionally, it is recommended to check the measurements captured by Monasca agents to avoid any duplication of data.
To enable or disable meters,
/etc/ceilometer/pipeline.yaml. Hint: You can see which meters are currently being reported through
ceilometer meter-listin Pike and earlier).
/etc/ceilometer/pipeline.yamlfile to add or remove entries from the meters list.
To create new meters (or clean out removed meters),
monasca_field_definitions.ymlwith the new meters.
Also note that HPE published documentation describing how to configure the metering service (using Ceilosca in Helion OpenStack 3.0 and later), which may be helpful for historical context. link 1 link 2 link 3
Here are a few examples of how a meter gathered by Ceilometer and passed through Ceilosca can be found and used in the Monasca API.
In Ceilometer pipeline YAML file
|Ceilometer meter||Monasca API metric|
Note: Monasca Agent can gather many similar metrics directly, such as cpu time for a VM. For simplicity, it is recommended that the Monasca Agent be favored when choosing which metrics to use.
Copyright (c) 2015-2017 Hewlett-Packard Development Company, L.P.
Copyright (c) 2018 SUSE LLC
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
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.