this patch adds ability to define multi-value jsonpath for all attributes
(not including source, timestamp, metadata).
NOTE: we will not remove the telemetry meter because we don't want to
allow user ability to (inadvertantly) remove support for pollster/api.
Change-Id: I5151ea7f3bede643830bbe8c01540628bc619f21
Implements: blueprint declarative-notifications
all transformers will now require a grouping key. the pipeline will
take grouping keys from all transformers in it's definition. using
the set of keys, the values will be pulled from the datapoint, hashed,
and sent to a pipeline. if no transformers are applied, samples will
be grouped by resource_id and events will be grouped by event_type.
Implement blueprint distributed-coordinated-notifications
Change-Id: Ief462d19655c238e5951881a58e183084d37ac13
Make sure the test_fallback_meter_path test case won't fail if
/etc/ceilometer/meters.yaml file exists or not.
Closes-Bug: #1486869
Change-Id: I630aa6a2fca48d87fcd7f9584701e461222a9bed
Based on existed self-disabled pollster, this sanity check would
prevent pollsters on mis-configured inspector from being loaded.
Change-Id: Ic4a7ce010e17b2f0f356687cc61a59276d59283d
Closes-Bug: #1485560
when processing notifications, the assumption is the payload is
always a dict. the odd cases, it's not. we should ignore these
cases.
Change-Id: I8e24d0c0ba42a67f2877051c683358a411f19e48
Closes-Bug: #1484972
When url is "unix://local", xenapi inspector should use specific
api to create the session to xenapi.
Change-Id: I1531c4ab75be7e1d462093dff1ddf0ca4ae4808e
Closes-Bug: 1484764
This commit integrates functionality from the `openstack.common.report`
module into Ceilometer. This enables Ceilometer services to receive
SIGUSR1 and print a Guru Meditation Report to stderr or file.
The required modules were added to 'openstack-common.conf' as well.
Change-Id: Ic59c08a610dff7140f14304a60f1c3297d190239
Implements: blueprint guru-meditation-report
CoordinationDriver of tooz has maintained the status about coordinator
started or not. we don't need to re-define a _started in ceilometer.
Depends-on: I1a177cf3efd63593667751c6b53bcc536fb0670f
Change-Id: I8487275b419e355548ef9df6e7c8515f569f83bd
Event should be acked or requeued when either event
conversion or event publishing fails by configuring
ack_on_event_error in configuration.
When publishing fails, the exception is not raised
in the pipeline and event does not get acked or
requeued, with a Handled message sent to transport
leading to event loss.
This fix raises the exception in pipeline on publish
failure and improves unit tests to test event handling
with a real pipeline.
Change-Id: Ia00a9ce30c5b03269091caa7f5edca9fcf113aff
Closes-Bug: #1482797
Magnum will have a background task that sends metrics to Ceilometer
periodically. This patch make Ceilometer recongnize the metric format
sent from Magnum.
Below is a sample message sent from Magnum:
{
'payload': {
'metrics': [
{
'unit': '%',
'name': 'memory_util',
'value': 12
}
],
'project_id': 'eba5e8c43b564e2597e884ff89d30800',
'user_id': '71a3a02f5591400a93f7145d555abbef',
'resource_id': '54123c4f-4d74-4da9-82e2-2e1432fe7522',
}
...
}
Change-Id: I0df33af378ed850e8de64ba6a0563b898609b520
Partially-Implements: blueprint magnum-ceilometer-integration
In some cases Ceilometer receives notifications with 'counter_volume' equal
None, for ex. from glance when empty image was created. This patch adds check
to avoid storing samples with None or not numerical volumes.
Closes-Bug: #1484117
Change-Id: Ic4b87c05d16dba765f601ca346b198eda7c91bea
union all is more performant as it doesn't need to filter out
duplicates. we should not have duplicates as the primary key
conditions already ensure that.
Change-Id: Ic25f7086b33a98ca77a669732a65be5a95b7f0db
Latest version of oslo.config support the ability to set valid
range on IntOpt option values. This path makes use of that feature
for a number of options with well known minimum and maximum values.
Change-Id: I26c920a2be68deeaa6ba534eb9d92b2960f78328
This reverts commit 33f133ab0cd37da5366769603ece67877505e7c9.
Apparently the way keystone info is used in aodh is different from how
ceilometer uses it. With the change to be reverted in place, none of the
agents can talk to services.
Change-Id: I462f7c4977f14e45069e2c826abd7944252bd9d9
unrestricted listing of data can require significant memory.
this patch implements mandatory limit on complex queries
Change-Id: I1fd21bbec63711a8887ba9363f791b6c67d75837
Implements: blueprint mandatory-limit
According to the OpenStack translation policy, available at
https://wiki.openstack.org/wiki/LoggingStandards, debug messages
should not be translated.
Change-Id: Icdf5ea14767d98d2dd4f32bd5b60130a8bca540a
Closes-Bug: #1317856
This is barebones for now, simply doing the upgrade and checking
services are still running. There is no checking of resources.
Being able to easily add those resources checks is part of the
reason for making this change.
The other reason is to explore and resolve conflicts when extracting
an existing integrated project from both devstack and grenade.
Note that grenade's ensure_services_started and _stopped struggles to
work with processes that contain spaces so distinguishing amongst
ceilometer-polling processes with different namespaces is hard, so
we'll just use the older agent names.
Change-Id: If7bb809743ab0c475a1844c79e552d8b6892a18f
Currently, the workers options of collector, api and notification services
are all located in [DEFAULT] section. This change unify the options name
and move them to corresponding service configure section.
Additionally, this change will remove the "workers set by cpu number"
functionality, because it has no effect if the workers options has default
value.
Closes-Bug: #1481254
Change-Id: Idde86762ab6520d3adcbdd2b86d0f4de3a8517cd