Commit Graph

54 Commits

Author SHA1 Message Date
Gabriel Adrian Samfira dcbebab56c
Add missing region setting in service_credentials
This change adds the missing region setting in service_credentials. In a
shared keystone multi region setup, this setting is mandatory in order
for ceilometer to properly find the services it relies upon from the
same region it resides in. Without this setting, the ceilometer-upgrade
action will fail (along with any other calls made to ceilometer) if the
first endpoint returned by keystone is from a different region.

Change-Id: Ie14df0f5fc7ee18072091dbdb3ada817615a6670
Signed-off-by: Gabriel Adrian Samfira <gsamfira@cloudbasesolutions.com>
2024-01-05 17:59:18 +02:00
Arif Ali f046895cdb Revert "Add meter-sink as an option"
This reverts commit 6ed691807d.

The meter_sink is actually required in pipeline.yaml and not in
event_pipline.yaml, and this is something that needs to be enabled
for newton and above as the ceilometer-collector is not the
dependancy for this.

Change-Id: Ie40a99281f1f60de7a409e1e3a2025a850a8a446
2021-11-05 11:27:02 +01:00
Arif Ali 6ed691807d
Add meter-sink as an option
If the user wants to add a meter-sink to the pipeline.yaml
at the moment this cannot be done. Previously, pipeline-yaml
config option was allowed and could replace the whole config.

This will now allow to also add meter-sink as an option to
the event_pipeline.yaml, and allow a new source of collecting
all meters, and pushing to the value of meter-sink URLs.

Closes-Bug: 1938807
Change-Id: If6cd82e4153b29c1d8fdb6df150d0d4bb11d4e49
2021-08-12 10:23:38 +01:00
Rodrigo Barbieri 740cac6571 Add polling-batch-size config option
Samples collected can be batched together,
consequently increasing or reducing the
amount of API calls and body data
sent to the configured publisher.

This config is available since Rocky,
adding the config option to allow its
tuning.

Change-Id: I0e3f756aa0305d3a96e21c7498d6a56208c51007
Closes-bug: #1885190
2020-08-19 18:04:53 +00:00
Corey Bryant 2a1f9a7199 Sync charm-helpers and use "rabbit_use_ssl" for ocata
Ensure "rabbit_use_ssl" is specified in the [oslo_messaging_rabbit]
config section instead of "ssl" for Ocata, since "ssl" was not yet
introduced.

Change-Id: I23bc8d6943377c72811d9b7c544b1ca9e1da9c43
Closes-Bug: #1838696
2019-08-01 22:56:36 -04:00
James Page 4bf409fb18 Use transport_url for Ocata or later
The ceilometer charm was already using transport_url for
Ocata or later deployments; resync helpers and include new
revised sectional config for SSL and HA settings.

Change-Id: Ib1822a89de8da6986552229a2b84ec5b784550ed
Closes-Bug: 1817672
2019-02-26 12:08:04 +01:00
Edward Hope-Morley d398cdff36 Make event_sink publisher configurable
The charm currently configures events to be published to
rabbit on both the config.event_topic (event.sample queue)
and alarm topic but as of Queens Ceilometer no longer
consumes event.sample. This patch makes the event_sink
publishers configurable and defaults to publishing to
aodh to retain backwards compatibility.

Change-Id: I5b55f31adcf2b069ff51e387a416f9f1ac4099f8
Partial-Bug: #1676586
2019-02-07 10:09:48 +00:00
Xav Paice 2baf36f4ee Add polling.yaml to managed configs
This change adds polling.yaml to the list of managed config files, for
Queens and above.  Two new config items are added alongside the
template, to take into account a choice between the two polling.yaml
files supplied with the Ceilometer source, one which has a small list of
pollsters and the other which has all pollsters.  Additionally the
change adds the option to set the polling interval.

Change-Id: Ifff72870cf79bea23dbd21586857dd832c9e1405
Closes-Bug: 1785933
Closes-Bug: 1652848
2018-11-30 15:01:22 +13:00
Liam Young 67b149f89c Support listening to multiple rabbit queues.
This change adds the ability to listen for events across multiple
rabbit queues. Nova cells v2 has a message broker per cell and
the charms already support having a separate message broker for
neutron, in both these topologies ceilometer needs the ability to
listen to multiple brokers.

To achieve this a new relation 'amqp-listener' has been introduced.
The existing 'amqp' relation should be used for the broker that
ceilometer listens to and publishes to. 'amqp-listener' should be
used for additional brokers that ceilometer just listens on.

Update functional tests to satisfy relation with
nova-cloud-controller.

Change-Id: Ifdade3f7814620f4cd4a1d35a584cbc099bb6d88
2018-10-19 07:30:12 +00:00
Felipe Reyes 6d66394482 Add config to manipulate the pipeline.yaml
The configuration file /etc/ceilometer/pipeline.yaml will be managed by
juju, currently it is not. On every change of this file
ceilometer-collector daemon is restarted.

Change-Id: Ie18a5284812f4f698b929b9e17b34289e7732bf7
Closes-Bug: 1715672
2018-09-26 15:27:41 +00:00
Michael Skalka 668a289862 Add support for remote consumers of Ceilometer event data.
There is a use-case to forward events received by ceilometer from
OpenStack services to an external system via http/udp. It comes
from the fact that aodh does not include all information about an
event alarm into POSTed data. Raw event data can be published by
ceilometer via http/udp to an external system without giving a
user direct access to rabbitmq.

This patch adds a context generator, associated templates, and
configuration entry for configuring multiple event-sinks in
/etc/ceilometer/event_pipeline.yaml. This also modifies the
ceilometer.conf templates to reflect the correct naming of the
same file to align with upstream Ceilometer.

Also adds support for a future Panko charm event consumer using
the event-service interface in the above context with associated
metadata and hook symlinks.

This change will only effect Mitaka and later clouds.

Closes Bug: 1763321

Change-Id: I931438c720272bd9a3d2b958ebabcd3584790bd0
2018-05-08 09:50:36 -04:00
James Page b7a329d456 Align worker configuration option
Align ceilometer charm with worker-multiplier usage as found
across the majority of OpenStack Charms.  Worker configuration
values are set for API, Notification and Collector services
as needed for each release. Note that for Ocata or later, API
services are executed as WSGI apps under Apache which was
already plugged into the standard worker calculation logic
in charm helpers.

This includes dropping of the existing api-worker configuration
option in preference to a calculated approach.

Change-Id: Idba7c3012d9d24b7ae6ef8eade4a5261ef1cbddc
Closes-Bug: #1745189
2018-02-20 13:29:55 +00:00
James Page 4c450fed8c Add support for OpenStack Queens.
Update charm to support Ceilometer@Queens; specifically:

 - Removal of Ceilometer API service
 - Removal of ceilometer-collector service

Most of this change is related to dropping of these
services; In addition its now possible to complete a
ceilometer-upgrade without mongodb being configured.

As this charm no longer provides any endpoints to
keystone, for Queens the identity-credentials relation
is required instead of the identity-service relation.

Change-Id: I3cefc24ffc9a0e60f446fbbdff603dfad37f7baa
2018-01-03 10:40:29 +00:00
James Page 669bc22be9 Add support for use-internal-endpoints
Add support for use of internal endpoints for inter-service
API calls from ceilometer.

Change-Id: Id702de85fb2236f21773ee7f2fb3698012b5f16c
Closes-Bug: 1713923
2017-09-05 11:46:26 +01:00
Nobuto Murata 486b6f9718 Set event,meter_dispatchers=database explicitly when used with MongoDB
The default value of event and meter_dispatchers were "database"
implicitly. However with Newton, there is no default value for
event_dispatchers. And empty meter_dispathers with Ocata. While Gnocchi
and Panko are preferred solutions, keep backward compatibility to
support an upgrade for existing deployments with MongoDB.

event_dispathers is not needed for Ocata since v2/events API has been
removed completely from Ceilometer.

Change-Id: I3a0f3fb029136d106afe0e77b704ee0c303ab27f
Closes-Bug: #1711932
2017-08-25 17:22:03 +07:00
James Page 72522a341f Add support for gnocchi
Add new metric-service interface to support use of
Gnocchi as a storage backend for resource and metric
data.

Configure ceilometer to use the gnocchi dispatcher
in the event that ceilometer is related to gnocchi.
This has the side effect of disabling the ceilometer
API - Aodh and Gnocchi API's should be used directly
in this deployment topology.

Note that Gnocchi is only supported in OpenStack
Mitaka or later; 'metrics-service' is added to the
required interfaces configuration as an alternative
to 'mongodb' for >= Mitaka.

Change-Id: Ia31dfefd5efa3fb5ec2ba5d132ee865c567bd8df
2017-08-10 12:57:42 +01:00
Ryota MIBU 3838010aaf Add Aodh event-alarm support
'alarm-listener' in Aodh would be deployed if you use charm-aodh.
It expects that ceilometer publish events with 'alarm.all' topic,
then it can evaluate alarm criteria pre-configured by users.

This patch makes ceilometer publish events for event-driven alarm
evaluation in Aodh.

Change-Id: Id536c9d847ac9c08b9d7d309b4639606e6860a17
2017-01-12 17:28:01 +00:00
Frode Nordahl 03f162e84b Fix support for Keystone v3 domain auth
When using v3 authentication and authorization Ceilometer must
authenticate to services project in service_domain.

Closes-Bug: 1636098
Change-Id: I23354e7db0eef83de31f703fdf754ca3ae2db92d
2016-11-29 15:22:51 +01:00
Zhang Hua f38c27421b Add keystone v3 support for service_credentials
service_credentials is used for the keystoneauth1.session.Session
class to bring a unified interface to the various openstack
clients that share common authentication and request parameters
between a variety of services. This patch will add keystone v3
support for service_credentials in ceilometer.

Change-Id: I8c8a7b0a90a002f17237c5dd3e167c2222e5291b
Partial-Bug: #1624173
2016-10-10 16:02:43 +01:00
James Page ac4d584e51 Updates for OpenStack Newton
Ceilometer switched to using wsgi_script to generate the
ceilometer-api binary; this resulted in a few packaging changes,
including one which means the listen port for Ceilometer API is
set via the systemd unit, rather than the ceilometer.conf
configuration file.

Add systemd override file handling for ceilometer-api, including a
small workaround which ensures that the systemd daemon loads the
override configuration file when it changes (only possible during
config-changed with enabling SSL support).

This charm should switch to using Apache + mod_wsgi next cycle, at
which point all of that can just be dropped.


Change-Id: Ic8b359d0b91fda144925f5c75044f919e73aadd9
Closes-Bug: 1629796
2016-10-03 19:12:47 +00:00
Liam Young bdfd5fc9fd Fix Keystone v3 integration for Mitaka+
The ceilometer.conf was using its defining its own keystone-authtoken
section which lacks Keystone v3 support rather than using the shared
template fragment from charmhelpers.

Change-Id: I180785aa6b1b89eab7d2d2814206e43b3aa90ff7
Closes-Bug: #1624173
2016-09-21 07:55:40 +00:00
Leonardo Borda f3c74cc4c6 Add metering and event ttl config options
ceilometer.conf template >= Kilo does not contain metering-time-to-live
and event-time-to-live parameters. Add these options so we can control
ceilometer database growth.

Change-Id: Id5831280daeb582586bfa615268309c4abec5d63
Closes-Bug: 1561220
2016-07-11 09:25:04 +01:00
James Page 0057f28731 Add full support for mitaka and drop old releases
Rework ceilometer.conf to remove use of deprecated groups and options.

Don't install aodh alarming services for Mitaka; this will be handled in
a new aodh charm.

Rework upgrade tests from precise-havana -> trusty-kilo.

Change-Id: I74112fd6206665bbb7a20eaa5be15ac85116ae03
2016-03-04 17:25:06 +00:00
James Page 98d931fb7f Remove templates for unsupported releases
Grizzly and Havana have been unsupported for some time; remove
templates as they are no longer tested or required.

Change-Id: I97377182fe28e3f7aa98784b537e1a353a58280d
2016-03-04 11:52:44 +00:00
Jorge Niedbalski f6b4c5d092 Adds the api_workers option 2015-07-09 18:31:30 -03:00
Jorge Niedbalski a28bbce3fd Adds the api_workers option 2015-07-09 18:29:27 -03:00
Ryan Beisner d2db3f41d3 remove broken templates/openstack_https_frontend.conf symlink (missed in rev63) 2015-07-01 17:22:12 +00:00
Edward Hope-Morley 36ec0ca692 formatting 2015-02-20 10:42:06 +00:00
Edward Hope-Morley 4eb27790d7 added signing_dir field to template 2015-02-20 10:19:57 +00:00
Edward Hope-Morley 38e857e756 removed stale apache2 templates 2015-01-12 13:31:41 +00:00
Billy Olsen adfbeb2ec7 Few changes:
- Add support for shared secret for ceilometer's signed messages
- Refactor MongoDBContext to be a bit more clean
- Specify replicaSet and readPreference parameters in the mongodb url
2014-11-12 16:42:57 -07:00
Billy Olsen b9178d2f15 Specify readPreferences in connection url to allow reading from a secondary
when the primary becomes unavailable.
2014-11-11 00:24:12 -07:00
Billy Olsen d1af363658 Add in the ability to process multiple mongo clients in a replica set
for high availability.
2014-11-07 08:04:59 -07:00
James Page 76b847200d Fixup service host usage 2014-04-12 21:38:58 +01:00
James Page 86830460c6 Tidy templates, add parts 2014-04-01 09:01:47 +01:00
James Page c13404061e Merge ssl-everywhere 2014-03-28 14:31:31 +00:00
yolanda.robla@canonical.com 8c3379ca8d changes for active/active in rabbit 2014-03-05 17:00:32 +01:00
Kapil Thangavelu ba9bef7611 ssl endpoint support 2014-03-05 08:53:56 -05:00
Kapil Thangavelu c01b7d47a8 merge trunk 2014-02-26 10:54:47 -05:00
Kapil Thangavelu 0a2c8a98d2 rabbit ssl support 2014-02-23 22:48:14 -05:00
yolanda.robla@canonical.com d121babc8a added syslog support 2014-02-03 11:33:27 +01:00
yolanda.robla@canonical.com 066102076b fix in templates 2014-01-28 11:21:54 +01:00
yolanda.robla@canonical.com d3bfb49e29 added rabbitmq hosts and ha queues 2014-01-28 11:07:02 +01:00
James Page 3d154836aa Switch to using openstack context templating 2013-10-18 14:38:01 +01:00
James Page 3327961f7c Tidy template, pass config values for logging 2013-10-17 15:41:48 +01:00
James Page e66a379d5a General tidy, sort out hooks, use openstack helpers 2013-03-31 12:19:54 +01:00
yolanda.robla@canonical.com f2e46bbfa7 add log dir to config 2013-02-20 10:14:08 +01:00
yolanda.robla@canonical.com af33c6fe17 fixes due to review 2013-02-14 12:45:03 +01:00
yolanda.robla@canonical.com c52c13cba4 fixes in config file 2013-02-13 14:13:31 +01:00
yolanda.robla@canonical.com d2a01ed024 updated keystone templates 2013-02-11 14:54:11 +01:00