Commit Graph

222 Commits

Author SHA1 Message Date
Jaromir Wysoglad d2e247cf38 Remove monasca
This removes the monasca integration. Monasca was recently
declared as inactive project. In addition the monasca related
unit tests were very verbose and they were outputing a lot
of errors. Lately one of the unittests even started failing
randomly.

Change-Id: I468079b2a790245bd682c80d0116fb0da60d0e7c
2023-11-08 04:30:36 -05:00
Takashi Kajinami abec9b3eaa Enable volume metrics by default
Now cinder is quite commonly used thus enabling volume meters would
help users to gather metrics from it easily, without modifying
the default file.

Change-Id: Ibdeffd65053fb55f3925590f7c1f9afa6f4383af
2023-02-21 14:31:39 +09:00
Takashi Kajinami 0118742bd3 Remove SNMP metrics from default polling
These metrics are no longer supported since we removed
GenericHardwareDeclarativePollster by [1].

[1] a28cef7036

Closes-Bug: #2007108
Change-Id: I2437f311ae0f975570c7b01bfa0f045af7cfeab4
2023-02-13 18:03:53 +09:00
Zuul 4bcc346164 Merge "Add missing oslo.cache parameters" 2022-08-30 11:42:39 +00:00
Takashi Kajinami 318c54648c Remove support for neutron-lbaas
... because it is of no use since neutron-lbaas was retired and was
replaced by Octavia. This feature was officially deprecated during
Yoga cycle[1] so we are ready to remove it.

[1] 8917c73964

Change-Id: Ic145c23cc0b0372ef78f4a45ffb084bec24936c3
2022-06-08 14:44:35 +00:00
Takashi Kajinami dff8282117 Add missing oslo.cache parameters
Since [1] was merged, ceilometer supports caching attributes of gnocchi
resource using the oslo.cache library. However the parameters to use
the feature are missing from ceilometer.conf auto-generated.

This change adds missing oslo.cache namespace so that parameters of
this library is properly included in the file generated by
the oslo-config-generator command.

[1] 2511cfb6e4

Change-Id: Ifa0c882f41e6a0cc56d7304e48e5479906fc1199
2021-11-29 10:25:23 +09:00
Takashi Kajinami 7742fe062b Add missing [oslo_reports] options
The oslo.reports library provides some options under the [oslo_reports]
section. This change ensures these parameters are rendered by
the oslo-config-generator command.

Closes-Bug: #1940733
Change-Id: Iba2180a4a4b939c0763b5867fc603f875c39d1ea
2021-08-21 17:23:50 +09:00
Joseph Davis 126350c0ae publisher: Contribute the Monasca publisher
The Ceilosca (monasca-ceilometer) publisher has been around since
before the Mitaka release and has been used in production for years.
The MonascaPublisher acts as another Ceilometer publisher and sends
selected metrics on to the Monasca API for storage, aggregation,
alarming, etc.  Once metrics are in Monasca, they may be retrieved
through the Monasca API or with the python-monascaclient. This
Ceilosca functionality is a key component for metering in several
distributions and is used in many customer installations.

With the removal of the Ceilometer v2 API (which allowed the
removal of the Ceilosca storage driver, shrinking the Ceilosca
code base) and continuing changes to Ceilometer, a tighter
integration with the ceilometer repo may be beneficial to keep
both Monasca and Telemetry in sync.

Change-Id: I2cbce160503e23dfbde375722a3bd100ec86494e
Story: 2001239
Task: 5769
2019-10-07 19:47:53 +02:00
zhurong bd0d5a8a27 Switch to oslo privsep
Please reference here:
https://docs.openstack.org/oslo.privsep/latest/user/index.html#converting-from-rootwrap-to-privsep

Change-Id: I5db0e64ec38d912f907b4ad483562120d030d726
2019-04-28 11:09:05 +08:00
zhurong 8f6b4efe97 Fix the wrong ipmitool command location file
Change-Id: I01ac17385c67ac1690728cc27957ec4c1b8e15dc
2019-04-23 13:02:55 +08:00
Mehdi Abaakouk 8fd68396af Replace deprecated snmp metrics
Change-Id: I9306afe72601baf87ca4767c15e719ec6d23dfe7
2018-10-17 07:47:09 +00:00
Mehdi Abaakouk 1e673a64b9 Deprecate aggregated disk.* metrics on instance
disk.* are just aggregates of disk.device.*. We
basically build the same think twice.

It's up to the backend (ie: Gnocchi) to aggregate them
if someone want the aggregate.

Change-Id: I612b575004f65665f8630f19f56c2fb3637448fd
2018-02-02 08:13:55 +01:00
Pradeep Kilambi 701684525b Add cpu_l3_cache to polling yaml
We need this for cache monitoring features to work out of the box.

Change-Id: I1d145a7e869416e6c0fe0133d94d126f740db016
2017-11-27 13:53:41 -05:00
gord chung a7253a8387 remove kafka and keystonemiddleware reqs
- no more api
- no more kafka publisher (use oslo.messaging)

Change-Id: I21794db25b624049df21d076ebe3be88fcd9d95a
2017-10-30 19:06:38 +00:00
Julien Danjou 9323f07f97 Remove deprecated storage drivers
Change-Id: I6b262dd440a72f25662b64d938ab9e5328709a97
2017-10-26 09:35:14 +02:00
Julien Danjou d881dd5228 Remove Ceilometer API
This removes the deprecated Ceilometer API.

Change-Id: I752b36b3dfe8f935b68c4d3d59ccb5b8b60c582f
2017-10-25 14:38:43 +02:00
Julien Danjou b62fa85400 Limit the default numbers of metrics polled
Enabling everything to be polled and transformed by default is quite heavy and
can lead to a massive amount of unused metrics. Limit the default to a few
metrics known to be actually useful to common deployers.

We keep all pollsters enabled on unit tests and devstack.

Change-Id: Ifb5aa684e575b7904726276b7205824f2dcaa7ce
2017-07-11 17:35:23 +02:00
Mehdi Abaakouk fc086ba3b3 Change default polling interval
Gnocchi by default uses the low archive policy. Aodh alarm examples
and heat template examples use 300 as granularity as well.

But ceilometer generates sample every 600 seconds making
alarming/autoscaling doesn't work out of the box.

People have to lower ceilometer polling or raise Gnocchi/Aodh/Heat
granularity to make thing works.

Change-Id: I3f234e208f3389d6e5952782aa9b310594bfaa5f
2017-05-17 12:35:32 +02:00
Hanxi Liu d9c11bb0ab Ship YAML file to /usr/share
Ship YAML files except for polling.yaml to /usr/share
so that users can update on upgrade.

Change-Id: I642a5f70d940e3e463d58d4a67fb02a5ff415404
2017-02-20 19:29:13 +08:00
Hanxi Liu 11191a4612 Deprecate collector
To optimise performance, We have to update ceilometer architecture.
The most important step is to deprecate collector. From now on, we
can configure multiple publishers in pipeline for pushing data to
internal or external system.

Highlight using multiple dispatchers.

Change pipeline publisher and disable ceilometer-collector by default.

Co-Authored-By: gordon chung <gord@live.ca>
Change-Id: I25a6e0b9221844adb4412f1829d9e290b6e198a3
2017-02-09 10:24:43 +08:00
gord chung 8999528092 polling definition file
add support for polling specific definition file.
this splits the existing polling specific options out of
pipeline.yaml as transformations only exists on notifcation agent
and polling interval/discovery only exists on polling agents.

backward compatibility is maintained so pipeline.yaml file from
previous releases can still be passed in as polling definition file.

Change-Id: I206566349f98d6b17336cd5ea36ceb1e304dd90c
2017-02-01 01:39:56 +00:00
Julien Danjou 8d23f431ab Remove events storage and API
This now has been moved to Panko.

Change-Id: I179eb0d436752e3bb8abaed714664cf74f5615e6
2017-01-06 16:33:53 +01:00
zhang-shaoman 0120d98528 Add old vm state for compute.instance.update
In compute.instance.update event, Nova reports old vm state in
payload.old_state, add this field to traits.

Change-Id: Id8266fae47b6fd7119000c9da6d71f035a20477a
2016-12-07 11:02:47 +08:00
Mehdi Abaakouk 1842e19487 register ceilometer options at runtime
This remove pollsters option from configfile sample
due to a duplicate option registration. This will
be fixed later.

The exchange_control group in the config sample doesn't exit
in reality exchange are in DEFAULT group.

This removes usage of cfg.CONF everywhere left.

This adds all missing OPTS in sample file.

Change-Id: I48c11ee7e1aae65847958b98532b3bdb48a3ceb5
2016-11-24 15:29:46 +01:00
dongwenjuan 1b4fcf5f39 extract 'instance_id' as 'resource_id' in event definitions
Currently the 'computer.instance.*' event traits map its 'instance_id' as
'instance_id'. But other events like volume, image, network and etc, they
all map their object_id as 'resource_id'. So we support both as the event
consumer can deal the events.traits with in a unified pattern.

Change-Id: I69935fcce228f1b4d490d3ac91251044102a8f11
2016-11-14 10:10:23 +08:00
xialinjuan f7f9f836b9 Add more verbosity for gnocchi_resources.yaml
For gnocchi_resource.yaml, make it have the same behavior like
we have for notification-meters defined in meters.yaml.

Make it fallback to some default gnocchi_resources.yaml file exactly
like we do for meters.yaml.

Closes-Bug: #1542184
Change-Id: I19814c5be02871419cca8035ced3d22a0feaacbc
2016-11-02 16:12:11 +00:00
Juan Antonio Osorio Robles 9191874c3f Add http_proxy_to_wsgi to config-generator
The http_proxy_to_wsgi was recently added, however, in order to have
this configuration added by the config generator, we need to add it
to that relevant conf file.

Change-Id: Ie763367a75cde2deff8fcdfda47e08ce990bae00
2016-10-13 08:48:38 +03:00
Jenkins 6291da84b9 Merge "Add http_proxy_to_wsgi to api-paste" 2016-10-10 08:25:51 +00:00
Juan Antonio Osorio Robles 30eb0f0ae1 Add http_proxy_to_wsgi to api-paste
This sets up the HTTPProxyToWSGI middleware in front of Ceilometer. The
purpose of thise middleware is to set up the request URL correctly in
case there is a proxy (For instance, a loadbalancer such as HAProxy)
in front of Ceilometer.

So, for instance, when TLS connections are being terminated in the
proxy, and one tries to get the versions from the / resource of
Ceilometer, one will notice that the protocol is incorrect; It will show
'http' instead of 'https'. So this middleware handles such cases.
Thus helping Keystone discovery work correctly.

The HTTPProxyToWSGI is off by default and needs to be enabled via a
configuration value.

Change-Id: I24f16dda49bd9e7930ca9f0d32bf0793463aff03
Closes-Bug: #1590608
2016-10-10 09:42:55 +03:00
gong yong sheng bc073f7592 make gnocchi event dispatcher work
The gnocchi event dispatcher have been broken by two major changes
because of no tests coverage (requests->gnocchiclient and panko
refactoring)

To fix that:
* the event dispatcher class derive the base event dispatcher class.
* Use correct gnocchi client method to search resources.
* Use correct gnocchi client method to update resources.
* Since record_event received a raw notification now and no more the event,
  we change the parsing codetoo.
* And obviously add a test !

Change-Id: I94b7393d79e495c5101225b4097c7073978ca7d7
Co-Authored-By: Mehdi Abaakouk <sileht@redhat.com>
Closes-bug: 1627928
2016-10-07 22:51:34 +02:00
Mehdi Abaakouk d9ff460052 Set the correct for image bytes_sent event
Change-Id: I3243f48eef58b7d3a0ea0cdd030a86ca26220cce
2016-08-02 15:47:24 +02:00
Jenkins b523822060 Merge "Add Magnum events to definitions" 2016-07-22 22:03:29 +00:00
Mehdi Abaakouk c940ccc964 gnocchi: use events to end Gnocchi resource
This change introduces a way to handle resources with the events
subsystem.

Also this need to be supported for type of resource.
To support it, etc/ceilometer/gnocchi_resources.yaml need to be
updated to add which event creates/updates/deletes the resource and
the mapping between event traits and gnocchi resource attributes.

This change adds the code to handle and the support for the 'instance'
and 'image' resource.

Only the delete event is support for now.

Related-bug: #1483634
Change-Id: Icd77137a74bccb5b2be078f206f153f0e9aa86c5
2016-06-24 09:07:12 +02:00
Julien Danjou 545a8b2a4e Remove configuration README in etc
Users are not able to use tox and this is documented in our RST documentation
already.

Change-Id: I866ece8fbcdf664ddabf431e6ccc00044d23a10c
2016-06-08 09:33:50 +02:00
Wenzhi Yu cf3f7c992e Add Magnum events to definitions
This patch adds definition for Magnum events.

Change-Id: I41ed3cab61f94f73e9b7b555b697f485dcb9464d
2016-06-06 17:47:33 +08:00
gordon chung 8599ec50ec drop magnetodb support
this project is abandoned.

Change-Id: Ie23096b31cab1f9980b8256a6de762e582504393
2016-04-04 13:03:20 -04:00
ZhiQiang Fan c569fcd5ed remove unused field 'triggers' defined in sample event_pipeline.yaml
this field is not used anywhere.

Change-Id: I0511c0022627cdcca474e8d3210286e2aabb1df7
2016-03-19 05:10:03 +08:00
Jenkins 8bcc7bddaf Merge "Moved CORS middleware configuration into oslo-config-generator" 2016-03-07 15:48:49 +00:00
Jenkins 23fd1b7502 Merge "gnocchi dispatch: Added new resource type support" 2016-03-07 13:52:08 +00:00
Jenkins b39c6216e2 Merge "Add the meter example file 'lbaas-v2-meter-definitions.yaml'" 2016-03-07 08:18:59 +00:00
Lianhao Lu aff5ed1bfd gnocchi dispatch: Added new resource type support
Added new resource types support of snmp related metrics: host,
host_disk, host_network_interface.

Change-Id: I220608e85629d89c44f778c82e0be67bb4ea6f3b
Depends-On: I0be08864ee10cefa252dc89885fda5fcc89a4e8a
Closes-Bug: #1518338
2016-03-07 05:39:10 +00:00
Jenkins 99ddb6fae9 Merge "[sahara] add events definitions regarding new notifications" 2016-03-03 02:27:35 +00:00
Vitaly Gridnev 85ca3e89a6 [sahara] add events definitions regarding new notifications
on sahara side we added new events related to current cluster
health. we want to collect statistic based on the cluster health,
like how many healthy clusters we have, and so on.
Health of the cluster will describe current state of cluster more
precisely.

Partially-implements blueprint: cluster-verification
Depends-On: Iac74a7bdec0f59a3720e17a682268faea36a45f3

Change-Id: Iea0f37cd2fe31e740a1ac5d02fd96c2f6b35495c
2016-03-02 21:39:19 +00:00
Michael Krotscheck 309345268b Moved CORS middleware configuration into oslo-config-generator
The default values needed for ceilometer's implementation of cors
middleware have been moved from paste.ini into the configuration
hooks provided by oslo.config. Furthermore, these values have been
added to ceilometer's default configuration parsing. This ensures
that if a value remains unset in ceilometer.conf, it will be set
to use sane defaults, and that an operator modifying the
configuration file will be presented with a default set of
necessary sane headers.

Closes-Bug: 1551836
Change-Id: Iaab90bfa1811bf6d56696648a000f02ee3306285
2016-03-02 04:48:34 -08:00
jizilian 3fafaa6fcb Add the meter example file 'lbaas-v2-meter-definitions.yaml'
Based on the discussion result with Gordon:

In this change set, add the meter example file
'lbaas-v2-meter-definitions.yaml' in the directory
'etc/ceilometer/examples' to help the users to configure to
translate the LbaaS v2 events to examples when they need.

Co-Authored-By: Xia Linjuan <ljxiash@cn.ibm.com>
DocImpact: Need to update the doc about the configuration
Change-Id: Ied6778e26ba6d70ee1407279ce0025e8bf169f22
2016-03-02 02:04:08 -05:00
Jenkins 8c880a2f30 Merge "Add /usr/local/{sbin,bin} to rootwrap exec_dirs" 2016-03-01 22:29:17 +00:00
Jenkins b79f2dd015 Merge "Change default policy to allow create_samples" 2016-03-01 14:28:05 +00:00
Jenkins 3a9b47e098 Merge "Enable the Load Balancer v2 events" 2016-03-01 14:20:20 +00:00
Rabi Mishra e054ffdb15 Change default policy to allow create_samples
https://review.openstack.org/#/c/234823/ has broken heat
integration tests as the default policy no longer allows
to create_samples without admin privileges.

Change-Id: I28980ff4cd82950bc713da519e0e49b62fc77a22
Closes-Bug: #1551383
2016-03-01 07:01:16 +00:00
Xia Linjuan cbf3eed761 Enable the Load Balancer v2 events
In this change set, add the following new event definitions to
receive the events of LBaaS v2.

a. loadbalancer
b. listener
c. healthmonitor

These events can be used for billing when the users use the LBaaS
service.

Co-Authored-By: Zi Lian Ji <jizilian@cn.ibm.com>
Change-Id: I6db28a934bac4a1d83cc1b61d879dc2b16989b3a
Implements: blueprint lbaas-v2-enablement
2016-03-01 01:39:25 -05:00