Commit Graph

342 Commits

Author SHA1 Message Date
Ghanshyam Mann a9ab62bef7 Update python classifier in setup.cfg
As per the current release tested runtime, we test
python version from 3.8 to 3.11 so updating the
same in python classifier in setup.cfg

Change-Id: I99bf47336c8363e5f0088dd26ae066f9202b27b7
2024-01-04 01:09:16 -08:00
Yadnesh Kulkarni 8f54f95134 Create new meter to poll power usage
IPMI sensor 'Current' captures current & power consumption metrics.

With the help of new pollster "hardware.ipmi.power", ceilometer
ipmi agent can differentiate between current and power metrics as
both are generated from the same sensor(Current).

Power metrics are captured using a slightly different command than
other sensors which is "ipmitool get sensor 'Pwr Consumption'".

Closes-Bug: #2038425
Change-Id: I0a8af40626cd44dca9743fba63c8dbda8729d054
2024-01-03 13:17:03 +00:00
minruigao c972cecb37 Add opentelemetry publisher base on http
Opentelemetry is a standard data protocol of observability.
This patch add a new publisher about 'opentelemetry', it use
http to send data in json format to opentelemetry collector.
In the future, we can try to send data to opentelemetry by gRPC.

Change-Id: Ifa20d29d27e35d98999bf0e7ae519ebcedf811aa
2023-12-18 16:47:29 +08:00
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
Yadnesh Kulkarni 3f874056c3 Add file publisher entrypoint to publish events
Implementation to publish event using file publisher already exists.

Due to the missing entrypoint for file publisher, events couldn't
be written to a file.

Closes-Bug: 2033052

Change-Id: Iee69978121874263d6de67dbddd420e44b6bff4c
2023-09-11 05:18:24 +00:00
jwysogla ed55b5f4a4 Add TCP publisher
This commit adds a TCP publisher. The publisher works similarly
to the UDP publisher.

Change-Id: Iac662018039e74ad59ac9c7fa4db994da540ef2f
2023-01-13 18:09:05 -05:00
Zuul c7b53e0afb Merge "Add support to host command dynamic pollster definitions" 2022-10-11 15:28:38 +00:00
Pedro Henrique cb448a1dbc Add support to host command dynamic pollster definitions
Problem description
===================
Today we have some hardcoded pollsters that are gathering
data from running virtual machines through libvirt or
different programs running in the compute nodes. However,
the Dynamic pollster definition does not support this kind of
operations to gather data, it only supports HTTP Rest
requests to collect data. Therefore, it is not possible to
use the dynamic pollster definition to create a YML based
pollster that runs and collects data from Libvirt in the
compute nodes.

Proposal
========
To allow host commands/scripts in the Dynamic pollsters,
we propose to add a new pollster definition using the
`os.subprocess` lib to run host commands to collect
Host/VMs data and store them in the configured backend.
This will provide more flexibility and make the
Dynamic pollsters able to be used in Ceilometer compute
 instances as well.

Change-Id: I50b8dc341ce457780416b41d138e35f5a0d083b6
Depends-On: https://review.opendev.org/c/openstack/ceilometer/+/850253
2022-09-13 15:04:58 -03:00
Zuul ab0f5a27f5 Merge "Remove GenericHardwareDeclarativePollster" 2022-08-12 10:34:47 +00:00
Zuul ce52d50c84 Merge "Remove support for neutron-lbaas" 2022-07-04 11:17:02 +00:00
Takashi Kajinami a28cef7036 Remove GenericHardwareDeclarativePollster
... and discovery/inspector plugins depending on the pollster. These
were implemented to gather metrics via SNMP daemon in TripleO-managed
deployment but these are no longer valid since Telemetry services and
Nova were removed from undercloud.

Change-Id: If9a6b695ba799c766314a88328ea8a779407acc0
2022-07-01 01:39:46 +09:00
Takashi Kajinami 0746992259 Update python testing as per zed cycle testing runtime
In Zed cycle, we have dropped the python 3.6/3.7[1] testing
and its support. Add release notes and update the python
classifier for the same.

[1] https://governance.openstack.org/tc/reference/runtimes/zed.html

Co-Authored-By: Ghanshyam Mann <gmann@ghanshyammann.com>
Change-Id: Ieec37d300bca0c78f9420657066b1c60a64911e9
2022-06-08 14:44:51 +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
songwenping 6b63e9e34d Update python testing classifier
Yoga testing runtime[1] has been updated to add py39
testing as voting. Unit tests update are handled by the
job template change in openstack-zuul-job

- https://review.opendev.org/c/openstack/openstack-zuul-jobs/+/820286

this commit updates the classifier in setup.cfg file.

[1] https://governance.openstack.org/tc/reference/runtimes/yoga.html

Change-Id: I56bd0f435e7e15eddebb89ef21e1a0b07bedc34b
2021-12-21 10:59:52 +00:00
Zuul 8bdfea78ea Merge "Remove Xen support" 2021-06-02 17:42:14 +00:00
Takashi Kajinami 99bdd78d95 Remove Xen support
This change removes the Xen support which was deprecared during
the previous cycle[1].

[1] fd0a561bea

Change-Id: If1675468095cbc1b9c065edb6b086e7f4afa2f3e
2021-05-05 09:18:31 +00:00
Yandong Xuan 6c99d4dbad setup.cfg: Replace dashes with underscores
Resolves warnings like the following:

  UserWarning: Usage of dash-separated 'description-file' will not be
  supported in future versions. Please use the underscore name
  'description_file' instead

Change-Id: Ie1a033f1dcb1b62bf1bc8a213b9d7ef7e4e5b299
2021-04-26 14:45:07 +08:00
Arnaud Morin cc8e109065 Implement some new meters for vnic delta
Add two new meters called network.incoming.bytes.delta and
network.outgoing.bytes.delta that give the delta Bytes that were send or
received by an vNic.

Change-Id: Icf45a8d185cdb4a7b00a83586c98f998cbc0e928
Signed-off-by: Arnaud Morin <arnaud.morin@gmail.com>
2020-10-29 13:36:59 +00:00
likui 5cabd3d334 Remove babel.cfg etc
Remove babel.cfg and the translation bits from setup.cfg, those are not
needed anymore

Change-Id: I852bb63719f2fe798471ec16b9328bac5380544f
2020-09-18 14:25:58 +08:00
Sean McGinnis b5756da489
Add py38 package metadata
Now that we are running the Victoria tests that include a
voting py38, we can now add the Python 3.8 metadata to the
package information to reflect that support.

Change-Id: I092a9bd1897bdb331c461ad85d8c58aff03e2511
Signed-off-by: Sean McGinnis <sean.mcginnis@gmail.com>
2020-04-24 08:22:34 -05:00
zhurong bc9ef4a2a4 Cleanup py27 support
Make a few cleanups:
- Remove python 2.7 stanza from setup.py
- Add requires on python >= 3.6 to setup.cfg so that pypi and pip
  know about the requirement
- Remove obsolete sections from setup.cfg:
  * Wheel is not needed for python 3 only repo
  * Some other sections are obsolete
- Update classifiers
- Update requirements, no need for python_version anymore

Change-Id: I93294c42a967ca19b9b04ead9cd636b52f1cc038
2020-04-11 00:57:21 -07:00
Ghanshyam Mann c639578217 [ussuri][goal] Drop python 2.7 support and testing
OpenStack is dropping the py2.7 support in ussuri cycle.

ceilometer is ready with python 3 and ok to drop the
python 2.7 support.

Complete discussion & schedule can be found in
- http://lists.openstack.org/pipermail/openstack-discuss/2019-October/010142.html
- https://etherpad.openstack.org/p/drop-python2-support

Ussuri Communtiy-wide goal:
https://governance.openstack.org/tc/goals/selected/ussuri/drop-py27.html

Depends-On: https://review.opendev.org/#/c/693631/

Change-Id: Ie8523712ea2ebe828fe01a649b6add90e813608b
2019-11-26 11:54:50 +00:00
Rafael Weingärtner 7cba277d79 Dynamic pollster system to support non-OpenStack APIs
The goal of this PR is to add the support for
non-OpenStack APIs into Ceilometer. An example of such
API is the RadosGW usage API.

Change-Id: If5e1c9bce9e2709746338e043b20d328d8fb4504
2019-11-18 10:48:26 -03: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
akhiljain23 53321c1a72 Add framework for ceilometer-status upgrade check
This commit adds the functionality of ceilometer-status CLI for performing
upgrade checks as part of the Stein cycle upgrade-checkers goal.
It only includes a sample check which must be replaced by real checks in
future.

Change-Id: I6e76b74b2f02251ee39025e02de44b13568ebed2
Story: 2003657
Task: 27732
2019-05-16 11:13:43 +08:00
ZhongShengping dd42e84a27 Update Python 3 test runtimes for Train
This goal is to implement the process set out in the 2018-10-24 Python
Update Process TC resolution[1], for the Train cycle to ensure unit
testing is in place for all of the Tested Runtimes for Train[2].
In practice, this generally means adding unit tests for Python 3.7 and dropping
unit tests for Python 3.5. Using the Zuul template for Train will ensure that
all projects that support Python3 will be tested against the agreed runtime
versions, and make it easier to update them in future.

[1]https://governance.openstack.org/tc/resolutions/20181024-python-update-process.html
[2]https://governance.openstack.org/tc/reference/runtimes/train.html

Change-Id: Ifb40dd40e716c0f07cafce4425e4ac13619d2085
Depends-On: https://review.opendev.org/#/c/641878/
2019-05-09 17:35:02 +08:00
ZhongShengping a626f315f1 Fix install_command in tox.ini
Co-Authored-By: zhurong <aaronzhu1121@gmail.com>
Change-Id: Ib727161e05e1a837c5a1a0a968b2488ec9815eca
2019-04-22 19:57:34 +08:00
Ghanshyam Mann e3d13092cd Dropping the py35 testing
All the integration testing has been moved to
Bionic now[1] and py3.5 is not tested runtime for
Train or stable/stein[2].

As per below ML thread, we are good to drop the py35
testing now:
http://lists.openstack.org/pipermail/openstack-discuss/2019-April/005097.html

[1] http://lists.openstack.org/pipermail/openstack-discuss/2019-April/004647.html
[2]
https://governance.openstack.org/tc/reference/runtimes/stein.html
https://governance.openstack.org/tc/reference/runtimes/train.html

Change-Id: Id96750c6cc8fa645d907a58348c7f3ea5a12c1a2
2019-04-15 01:47:34 +00:00
ZhongShengping 840a871e7c Update mailinglist from dev to discuss
openstack-dev was decomissioned this night in https://review.openstack.org/621258
Update openstack-dev to openstack-discuss

Change-Id: I6c7c07157327434515ccba72f332e132a8e363f5
2018-12-05 09:44:50 +08:00
Zuul c1de345bcd Merge "compute: remove deprecated disk meters" 2018-09-13 09:07:08 +00:00
Zuul 494d17f350 Merge "pipeline: remove transformer support" 2018-09-13 09:07:07 +00:00
Julien Danjou f7b1218b8e compute: remove deprecated disk meters
The equivalent disk.device meters are available for a while now.

Change-Id: I6f1af3b8d0a1ec32b2722db62ab9cafe6309532f
2018-09-06 10:38:25 +02:00
Julien Danjou 9db5c6c9bf pipeline: remove transformer support
Transformers cannot work correctly on multiple nodes without workload
partitioning, which has been removed.
The transformation of data is no more the responsability of Ceilometer. The
data storage used by default (Gnocchi), is able to handle the scenario that
Ceilometer covered by default such as computing the rate of a metric.

Change-Id: If3683318b998a37c40bc09314dd8ab3eef326ba7
Depends-On: Ifd1d04ce813028f115c19bc983e7dd1e63c6f8a5
Depends-On: I0330c09d72c20d63d08770b52d3071512a418260
2018-09-06 10:38:25 +02:00
Nguyen Van Trung 5aae14a9c8 Follow the new PTI for document build
For compliance with the Project Testing Interface as described in:
https://governance.openstack.org/tc/reference/project-testing-interface.html

For more details information, please refer to:
http://lists.openstack.org/pipermail/openstack-dev/2017-December/125710.html

Change-Id: Ibdd264f0ef0c27762d47a70da192a858e62074a9
2018-09-06 13:07:06 +07:00
Mehdi Abaakouk 2b8052052d publisher: add a Prometheus Pushgateway publisher
This change adds a publisher to push metrics to Prometheus Pushgateway.

Change-Id: I7d5f39f036714ac1e36d3297ad58dd8498908a53
2018-04-17 09:50:08 +02:00
Zuul 305f502ec1 Merge "Remove deprecated rgw meters" 2018-02-22 14:53:16 +00:00
Julien Danjou dd1b7abf32 Remove deprecated rgw meters
Change-Id: Ia1e8466d613acfc5ccfa29cc44bf101afb0e5e88
2018-02-08 09:46:55 +01:00
Chandan Kumar bb28c46d2c Remove bundled intree ceileometer tempest plugin
* All the telemetry related projects intree tempest plugins
  are now moved to telemetry-tempest-plugin

Change-Id: I57738964f65495364dcc74821634d54aea1769fd
2018-01-15 15:54:49 +01:00
Mehdi Abaakouk 02c99b1867 Check required Gnocchi version is installed
Change-Id: I301511279c1d49736027e51274c8740935e154b0
2018-01-04 10:37:46 +01:00
gord chung 2d67bd21dd nearly pluggable notification agent
notification agent now just asks for pipelinemanagers and gets
endpoints it should broadcast to from there. it only sets up a
listener for main queue and a listener for internal queue
(if applicable)

- pass in publishing/processing context into endpoints instead of
manager. context is based on partitioning or not
- move all endpoint/notifier setup to respective pipeline managers
- change interim broadcast filtering to use event_type rather than
publisher_id so all filtering uses event_type.
- add namespace to load supported pipeline managers
- remove some notification tests as they are redundant and only
different that it mocks stuff other tests don't mock
- change relevant_endpoint test to verify endpoints cover all pipelines

Related-Bug: #1720021
Change-Id: I9f9073e3b15c4e3a502976c2e3e0306bc99282d9
2017-11-16 14:43:46 -05:00
gord chung 50415c0d08 separate base manager from pipeline
common agent for all

Change-Id: I19a83d3d0e5c91ab5cb6e792ab7389e36f8ede55
2017-11-16 14:43:46 -05:00
Zuul 68b21df564 Merge "fix radosgw meter name" 2017-11-08 01:42:33 +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
gord chung fdc5448792 fix radosgw meter name
meter name in entrypoint should match actual meter name so it can
probably be enabled/filtered in polling/pipeline

Change-Id: I8ffbfc5ff65c505734ccc6c5fd4270ecf46d16e8
Closes-Bug: #1726458
2017-10-23 17:03:18 +00:00
Julien Danjou 5a6250c6a7 Move oslo.cache to gnocchi flavor
oslo.cache is only used in the Gnocchi dispatcher, and not at all in tests.
Therefore it seems wrong to list it in tests.
Rather than always depending on it, let's just put it in the gnocchi flavor.

Change-Id: I8990ba139bba0d573ecd4d8567a88d92acb29605
2017-10-18 09:31:36 +02:00
gord chung fad69e9603 kill collector
Change-Id: I7720d20eab345a7835d57fac573332eca0e7d11e
2017-10-16 03:20:38 +00:00
Julien Danjou 83ffaffcb2 Replace the Gnocchi dispatcher by a publisher
This removes the deprecated Gnocchi dispatcher and replaces it by its
equivalent publisher.

Change-Id: Ie44baf20ccb8de5794f5f0c3d4717f7e56afa63b
2017-10-13 18:18:07 +02:00
zhangxuanyuan 2002373017 Remove class KafkaBrokerPublisher
Remove class KafkaBrokerPublisher and use NotifierPublisher instead

Change-Id: I12fb8666c9af485c9bf9aace8eee08f2e4683e09
2017-09-27 10:52:21 +08:00
zhangxuanyuan 481e6151af Remove class HttpDispatcher
Remove class HttpDispatcher and use http publisher instead

Change-Id: If4174431c9a09e237fb79c9643a54748afe797b0
2017-09-12 20:00:36 +08:00