summaryrefslogtreecommitdiff
path: root/ceilometer/opts.py
Commit message (Collapse)AuthorAgeFilesLines
* [coordination] backend_url should be secretTakashi Kajinami2023-03-201-0/+1
| | | | | | | | | | | | | The backend_url option can sometimes contain secrets. For example when redis coordination backend is used and authentication is enabled in redis, the plain redis password is put as an URL element. [coordination] backend_url=redis://:password@127.0.0.1:6379 Closes-Bug: #2012246 Change-Id: I9b61dd459445e0d32a305835fb05a072c32848a4
* Merge "Remove GenericHardwareDeclarativePollster"Zuul2022-08-121-5/+0
|\
| * Remove GenericHardwareDeclarativePollsterTakashi Kajinami2022-07-011-5/+0
| | | | | | | | | | | | | | | | | | ... 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
* | Remove [coordination] check_watchersTakashi Kajinami2022-06-261-8/+1
|/ | | | | | | | | | This parameter has had no effect for several cycles and was officially deprecated during Xena cycle[1]. [1] 46ad2786ae48f41a97a014fd140f022ee3ee3c1c Related-Bug: #1929178 Change-Id: I8463537ca09db2f0bc443505afaab6a1f9ff5db2
* Merge "Remove Xen support"Zuul2021-06-021-2/+0
|\
| * Remove Xen supportTakashi Kajinami2021-05-051-2/+0
| | | | | | | | | | | | | | | | | | This change removes the Xen support which was deprecared during the previous cycle[1]. [1] fd0a561bea956f1b62f6ca5a27e762cb76ad9a90 Change-Id: If1675468095cbc1b9c065edb6b086e7f4afa2f3e
* | Deprecate unused [coordination] check_watchersTakashi Kajinami2021-05-211-0/+2
|/ | | | | | | | | The [coordination] check_watchers is no longer used in any implementation. This change deprecates the parameter so that we can remove it in a future release. Closes-Bug: #1929178 Change-Id: Id5c437e98c276a3183b84531749f722705fb8f09
* Merge "publisher: Contribute the Monasca publisher"Zuul2019-11-011-0/+2
|\
| * publisher: Contribute the Monasca publisherJoseph Davis2019-10-071-0/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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
* | Create dynamic pollster featureRafael Weingärtner2019-10-231-0/+1
|/ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The dynamic pollster feature allows system administrators to create/update pollsters on the fly (without changing code). The system reads YAML configures that are found in ``pollsters_definitions_dirs``, which has the default at ``/etc/ceilometer/pollsters.d``. Each YAML file in the dynamic pollster feature can use the following attributes to define a dynamic pollster: * ``name`` -- mandatory field. It specifies the name/key of the dynamic pollster. For instance, a pollster for magnum can use the name ``dynamic.magnum.cluster``; * ``sample_type``: mandatory field; it defines the sample type. It must be one of the values: ``gauge``, ``delta``, ``cumulative``; * ``unit``: mandatory field; defines the unit of the metric that is being collected. For magnum, for instance, one can use ``cluster`` as the unit or some other meaningful String value; * ``value_attribute``: mandatory attribute; defines the attribute in the JSON response from the URL of the component being polled. In our magnum example, we can use ``status`` as the value attribute; * ``endpoint_type``: mandatory field; defines the endpoint type that is used to discover the base URL of the component to be monitored; for magnum, one can use ``container-infra``. Other values are accepted such as ``volume`` for cinder endpoints, ``object-store`` for swift, and so on; * ``url_path``: mandatory attribute. It defines the path of the request that we execute on the endpoint to gather data. For example, to gather data from magnum, one can use ``v1/clusters/detail``; * ``metadata_fields``: optional field. It is a list of all fields that the response of the request executed with ``url_path`` that we want to retrieve. As an example, for magnum, one can use the following values: ``` metadata_fields: - "labels" - "updated_at" - "keypair" - "master_flavor_id" - "api_address" - "master_addresses" - "node_count" - "docker_volume_size" - "master_count" - "node_addresses" - "status_reason" - "coe_version" - "cluster_template_id" - "name" - "stack_id" - "created_at" - "discovery_url" - "container_version" ``` * ``skip_sample_values``: optional field. It defines the values that might come in the ``value_attribute`` that we want to ignore. For magnun, one could for instance, ignore some of the status it has for clusters. Therefore, data is not gathered for clusters in the defined status. ``` skip_sample_values: - "CREATE_FAILED" - "DELETE_FAILED" ``` * ``value_mapping``: optional attribute. It defines a mapping for the values that the dynamic pollster is handling. This is the actual value that is sent to Gnocchi or other backends. If there is no mapping specified, we will use the raw value that is obtained with the use of ``value_attribute``. An example for magnum, one can use: ``` value_mapping: CREATE_IN_PROGRESS: "0" CREATE_FAILED: "1" CREATE_COMPLETE: "2" UPDATE_IN_PROGRESS: "3" UPDATE_FAILED: "4" UPDATE_COMPLETE: "5" DELETE_IN_PROGRESS: "6" DELETE_FAILED: "7" DELETE_COMPLETE: "8" RESUME_COMPLETE: "9" RESUME_FAILED: "10" RESTORE_COMPLETE: "11" ROLLBACK_IN_PROGRESS: "12" ROLLBACK_FAILED: "13" ROLLBACK_COMPLETE: "14" SNAPSHOT_COMPLETE: "15" CHECK_COMPLETE: "16" ADOPT_COMPLETE: "17" ``` * ``default_value_mapping``: optional parameter. The default value for the value mapping in case the variable value receives data that is not mapped to something in the ``value_mapping`` configuration. This attribute is only used when ``value_mapping`` is defined. Moreover, it has a default of ``-1``. Change-Id: I5f0614518a9e304b86b74aa5bb0f9667d2a3a787 Signed-off-by: Rafael Weingärtner <rafael@apache.org>
* opts: remove unused importJulien Danjou2018-09-181-1/+0
| | | | Change-Id: I24c90f5331897a0f9afc2ce4b3a9a5be42359ae6
* polling: remove deprecated option batch_polled_samplesJulien Danjou2018-08-291-2/+1
| | | | Change-Id: Id854b788c3dbc34b9fb944b6dc72d7f3b48d5495
* Merge "objectstore/rgw: Add config option to support RGW implicit tenants"11.0.0Zuul2018-07-301-0/+1
|\
| * objectstore/rgw: Add config option to support RGW implicit tenantsFelix Walter2018-06-111-0/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | If "rgw keystone implicit tenants" is enabled for Rados Gateway to enable Multi-Tenacy [1], the created RGW user IDs are in the format "keystone_project_id$keystone_project_id", i.e. the RGW tenant ID is added to the user ID. This breaks metering via Ceilometer as the usage is always queried for uid=keystone_project_id. If implicit tenants are enabled in RGW, Ceilometer has to query based on the adapted used IDs. This commit introduces support for querying the correct user accounts. [1] http://docs.ceph.com/docs/mimic/radosgw/multitenancy/ Change-Id: I6de4c5ce0e4f59c1d952f8fd39de64937e781280 Signed-off-by: Felix Walter <felix.walter@cloudandheat.com>
* | Remove deprecated gnocchi_dispatcher option groupJulien Danjou2018-07-031-22/+0
|/ | | | Change-Id: Ic8d1a0c56e4bfd04d468c9f4a38236d29f4fe4f8
* move pipeline out of __init__gord chung2017-11-161-2/+2
| | | | | | see title Change-Id: I9ff4403bffc39dafccc7d2fe407a4498e2f4cae0
* separate base manager from pipelinegord chung2017-11-161-3/+3
| | | | | | common agent for all Change-Id: I19a83d3d0e5c91ab5cb6e792ab7389e36f8ede55
* Remove deprecated storage driversJulien Danjou2017-10-261-4/+0
| | | | Change-Id: I6b262dd440a72f25662b64d938ab9e5328709a97
* Remove Ceilometer APIJulien Danjou2017-10-251-5/+0
| | | | | | This removes the deprecated Ceilometer API. Change-Id: I752b36b3dfe8f935b68c4d3d59ccb5b8b60c582f
* kill collectorgord chung2017-10-161-2/+0
| | | | Change-Id: I7720d20eab345a7835d57fac573332eca0e7d11e
* Replace the Gnocchi dispatcher by a publisherJulien Danjou2017-10-131-3/+22
| | | | | | | This removes the deprecated Gnocchi dispatcher and replaces it by its equivalent publisher. Change-Id: Ie44baf20ccb8de5794f5f0c3d4717f7e56afa63b
* remove ironic exchangegord chung2017-10-041-2/+0
| | | | | | this should've been removed with Id0c976b7e7e57fe9fd908376edc2c85dd1aa2abf Change-Id: Icd524e778e91747761f182cf4a95b6d64d48913a
* Remove deprecated nova_http_log_debug optionJulien Danjou2017-09-251-1/+0
| | | | Change-Id: I6f005fdfcb8304f108969e84783c750ea34cfe9d
* Merge "Remove deprecated *_control_exchange"Jenkins2017-09-251-2/+0
|\
| * Remove deprecated *_control_exchangeJulien Danjou2017-08-231-2/+0
| | | | | | | | Change-Id: Id0c976b7e7e57fe9fd908376edc2c85dd1aa2abf
* | Remove class HttpDispatcherzhangxuanyuan2017-09-121-2/+0
| | | | | | | | | | | | Remove class HttpDispatcher and use http publisher instead Change-Id: If4174431c9a09e237fb79c9643a54748afe797b0
* | Remove class FileDispatcherzhangxuanyuan2017-09-071-2/+0
|/ | | | | | Remove class FileDispatcher and use file publisher instead Change-Id: I7433de3ab8b3d8479f44283264ea8f6e0e523081 Closes-Bug: 1715551
* Merge "Replace Ceilometer coordination layer by tooz partition system"Jenkins2017-05-021-2/+14
|\
| * Replace Ceilometer coordination layer by tooz partition systemJulien Danjou2017-04-261-2/+14
| | | | | | | | | | | | | | This replaces the custom made partitioning system using the hashring by the one provided in tooz. Change-Id: I2321c92315accc5e5972138e7673d3a665df891e
* | gnocchi/notification: allow to configure the maximum number of requests in ↵Julien Danjou2017-04-241-0/+5
|/ | | | | | | | | | parallel This overrides the number of $executor_thread_pool_size with a global option that is also used to set the number of parallel requests to Gnocchi that can be done. Change-Id: Iaa7e3d0739a63d571dd2afc262d191dffe5a0eef
* Use HostAddressOpt for opts that accept IP and hostnamesblue552017-03-231-6/+7
| | | | | | | | | | | | | | | Some configuration options were accepting both IP addresses and hostnames. Since there was no specific OSLO opt type to support this, we were using "StrOpt". The change [1] that added support for "HostAddressOpt" type was merged in Ocata and became available for use with oslo version 3.22. This patch changes the opt type of configuration options to use this more relevant opt type - HostAddressOpt. [1] I77bdb64b7e6e56ce761d76696bc4448a9bd325eb Change-Id: I2463fc873bb149cafa802f5743d5f482f25552fc
* Merge "Revert "verify gnocchi connection before processing""Jenkins2017-02-281-1/+0
|\
| * Revert "verify gnocchi connection before processing"Julien Danjou2017-02-221-1/+0
| | | | | | | | | | | | | | | | | | | | | | This reverts commit 152aa1af01769841956da1bc0225bde88b80af08. This makes Ceilometer spam Gnocchi at startup for no good reason. Gnocchi being started or not at the start of Ceilometer should not change anything, as it can become down at anytime and Ceilometer ought to handle that case anyway. Related-Bug: #1666072 Change-Id: Ic03ee3343f68428775f2dd780a26298ab0434800
* | Support extended declaring exchangesHanxi Liu2017-02-221-2/+3
|/ | | | | | | | | Allow users add metrics into meters.yaml themselves. Reusing http_control_exchanges makes it available to extend addtional exchanges. Closes-Bug: #1656873 Change-Id: I196f8fb0e2aee8498309bb0cb1b3ec2b2e21e211
* drop kwapi pollstergord chung2017-02-131-3/+1
| | | | | | we deprecated this in newton and it's been dead for far longer. Change-Id: I790e36c7daefb07eefe68298f91c14211f9a8df0
* Don't poll nova with compute agentMehdi Abaakouk2017-01-091-2/+2
| | | | | | | | | This change introduces a new method to get instances metadata on the ceilometer-compute-agent. This switches devstack/gate to libvirt_metadata for gnocchi Change-Id: Ice1918659be49589a45d7a406044adc0a187aa27
* Merge "add support to parse user metadata"Jenkins2017-01-041-2/+0
|\
| * add support to parse user metadatagord chung2016-12-201-2/+0
| | | | | | | | | | | | | | | | | | | | leverage the same user metadata parsing the pollster use. it basically grabs all entries in target payload with specified namespace. this is needed for nova free polling Change-Id: I676a1c2f16cc4259072b51df62a1c5e342caeb6f
* | gnocchi: Allow to set a different creds sectionMehdi Abaakouk2016-12-131-7/+5
|/ | | | | | | | This change will allow to remove keystoneauth in Gnocchi dispatcher for people where authentication of Gnocchi request doesn't make sense. Change-Id: If3a47f091a80333a0e7e0246e28040254c4f423b
* register ceilometer options at runtimeMehdi Abaakouk2016-11-241-20/+46
| | | | | | | | | | | | | | | 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
* Add support of metering volume related resourcesliusheng2016-11-101-1/+3
| | | | | | | This change add the support of metering size of volume/snapshot/backup. Blueprint add-support-of-metering-volume-related-resources Change-Id: I9c6ec1e79c267255e7839d70324726e56bc6d768
* Clean the deprecated non-metric related codeliusheng2016-09-261-4/+0
| | | | | | | | | | Since we have disable the non-metric meters in Liberty and expected to remove them. Now it is time to clean these deprecated metrics. [1] https://review.openstack.org/#/c/194409/ Change-Id: I8d0d40057b415e24d760c3dff9ca5ae57de27c61
* Use pbr wsgi_scripts feature to build ceilometer-apiJulien Danjou2016-09-141-5/+1
| | | | Change-Id: I8812ea1a92d6dc7f41a490e971bb7a09dee9b304
* Remove sql-expire-samples-only as a CLI optionJulien Danjou2016-09-131-1/+0
| | | | | | | | This option actually changes the behaviour of the driver, so it should not be passed only as a CLI option, but should be set in the configuration file. Change-Id: I3540b2db1c039320e387d7a0484b351b082d00de
* Switch to use Glance v2 in image pollstersliusheng2016-08-051-3/+2
| | | | | | | Since the Glance v1 APIs won't be maintained any more, it is better to switch use Glance v2 for in image pollsters. Change-Id: Ib2df3bb4fdd12649bddffd624714707e1369f6af
* Merge "remove deprecated auth type password-ceilometer-legacy"Jenkins2016-05-201-2/+0
|\
| * remove deprecated auth type password-ceilometer-legacyZhiQiang Fan2016-04-281-2/+0
| | | | | | | | Change-Id: I7822964503439886ae08192c8edfb64c6201d438
* | Merge "fix opts.list_opts for polling options"Jenkins2016-05-091-3/+1
|\ \
| * | fix opts.list_opts for polling optionsZhiQiang Fan2016-05-071-3/+1
| |/ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | After running `tox -egenconfig`, in etc/ceilometer/ceilometer.conf, batch_polled_samples & shuffle_time_before_polling_task appears for three times, while partitioning_group_prefix doesn't show up. This is because we specify those options in a wrong way in ``opts.list_opts``, for partitioning_group_prefix, it is a typo which reference the wrong option list, while for the rest two, we should not add them to list_opt and comment they are deprecated, oslo.config has already provided a field named deprecated_group. This patch corrects them into the proper place. Change-Id: I88c475aab1b76b38cadaa4275907443880464948 Closes-Bug: #1579089
* | remove deprecated option database_connectionZhiQiang Fan2016-04-251-1/+0
|/ | | | | | | I582d4cb7d51d6ddecc27ae5fcdedcfd19dc898af has deprecated this option on May 28, 2013, let's remove it Change-Id: I638cf6bb8f97eaaff56728afedd6c189dce3f5a1