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
Added new resource types support of snmp related metrics: host,
host_disk, host_network_interface.
Change-Id: I220608e85629d89c44f778c82e0be67bb4ea6f3b
Depends-On: I0be08864ee10cefa252dc89885fda5fcc89a4e8a
Closes-Bug: #1518338
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
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
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
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
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
I noticed that nova, neutron and cinder's rootwrap exec_dirs include
/usr/local/{sbin,bin} which is a standardised location for admins to
install non-distro executables, and these executables are no less
"trustworthy" than /usr/bin and friends. See neutron and cinder's
rootwrap.conf (and probably others), and typical distro default values
for sudoers/secure_path for extremely similar precedents that all include
/usr/local/*bin.
See the same patch of nova for more information:
https://review.openstack.org/#/c/280052/1
And see I710cf142b834381c00e651cfc062299ae755c33f for brief discussion
of doing this via devstack before.
Change-Id: If5ed1d7d81fdac10fc2b1608aafe20833e0f2980
Rbac context is limited not by policy but is inherently built in
as we cannot enforce policy on a list.
This patch drops the dummy policy, the invalid context_is_project
and context_is_admin policies, and ensures policy rbac can restrict
on admin appropriately.
Closes-Bug: #1504495
Change-Id: Id3b1ad71aea46456c6e6c1995776b988017d4786
we added cpu.delta in liberty to capture cputime between polls.
this adds it to the metric list for instance resource.
Change-Id: Ib494f7d119cda370aa8291fd404dad38c0c53817
Since we moved all the alarming code and subsystem to the Aodh project,
remove it from Ceilometer.
Depends-On: I3983128d2d964b0f1f3326948b27f5d94df65a04
Depends-On: I99c9f2be0bbc70f289da5c2ba22698b8b7dc4495
Change-Id: Id169a914c1d1f2f5ad03ebb515d3d052204d5c5c
Otherwise people may think that it is available for installation. It
is not, it is for testing only.
Change-Id: Iad19536fba569c6a9d43c07c64746e7f6ffde986
We don't need a separate script to wrap the oslo-config-generator. Like
other projects, we can just specify a config-generator config file to
define the namespaces.
Change-Id: I9ee06658d49163f041df18a62b33fa2804f545b8
'split' plugin can be replaced by an jsonpath expresion
since jsonpath-rw-ext>=0.1.8.
This change deprecates it
Depends-On: I8cd971d6dd98cd6c4c3dc83696969c47e8cdd8ac
Change-Id: Iac2253c81dacaa1b2a2258569716d20916fc9920
This change add instance_network_interface and instance_disk to
Gnocchi dispatcher.
It also adds some missing metadata to samples to build the Gnocchi
resource.
Change-Id: Ic7babe73befbe0fff741d0c0c764ded493dc8c8e
this patch adds support for a delta transformer. the transformer's
only functionality is to calculate the delta between current sample
and previous sample.
conditions:
- it will disregard any out of order samples
- a growth_only param is available to capture only positive deltas
- supports renaming to a new meter name using same schema as other
transformers.
using this transformer, we also create a cpu.delta meter which will
enable another view of cpu meter. this delta meter will allow for
(relatively) accurate cputime calculations and will cope with cputime
resets.
DocImpact
Change-Id: Iabcad20d500e3157e4d19f8b2ebffd770218165b
Closes-Bug: #1417949
With the new Image-Volume cache added in to Cinder there will be some
new notifications sent from the Cinder services. This adds new event
definitions for them.
Change-Id: Ice70049dd13018be863eee8f3ba02d977e5ab88c
Closes-Bug: #1493960
The ceilometer events RBAC is currently hard-coded so
that only an admin user can view events.The end-user
should be able to customize who should be able to view
events rather than hard-coding the control to admins.
This changeset adds two new rules into the policy.json
so that RBAC for events index and show methods can be
configured using the policy.json file.
DocImpact
Change-Id: I7bf4d385b9ee8fa8f1097b6400cbbc4135f2a9b6
blueprint: events-rbac
The ceilometer audit events stored at the ceilometer database
currently don't have user_id/project_id associated with them
even though this information is available as part of the event
message payload. The user_id and project_id information has to
be stored as traits so that there's user/project context for each
event and these traits are required to apply RBAC-based rules
and filters on events. For eg., presence of these traits enable
db queries - like get all events for a project/user against events.
The audit event definition in the events yaml file already stores
payload.initiator.id as initiator_id but the initiator_id trait
is not a common trait across all events and thus this trait cannot
be used to apply RBAC filter against events.This changeset will
thus add user_id and project_id traits to the audit events namely
*.http.* and add useri_id and project_id as default traits for all
events.
DocImpact
Change-Id: If4034342c4e60d519f0ec96ae8895dcf78f8ad3b
blueprint: events-rbac
This change use jsonpath_rw_ext instead of jsonpath_rw
It also remove the useless attributes list by a dict in the
yaml configuration.
Change-Id: I6014181d6d4d45ffa9769da9670b11d79d6910fc
Include the new entry point for meters notifications
and deprecate the migrated ones. Also add the exchange
controls to the notification agent directly.
As a first step, this commit converts glance, magnetodb
and orchestration meters.
Partially Implements: blueprint declarative-notifications
Depends-On: I9de94c5ac6349c3b46adbacb77fc877b5201285c
Change-Id: I45ea9ab20bbed1ec12b91a20977e8adb52bf59da
Transformation of samples to gnocchi resources/metrics is
just json2json think, so do it in a declarative ways like we do
for event and declarative notification.
Implements blueprint gnocchi-declarative-resources
Change-Id: I5a202c30614d06821063e243d4e2330736aba5fd