From cb448a1dbc48ddd28d9fd0f6b6e44deafd636f52 Mon Sep 17 00:00:00 2001 From: Pedro Henrique Date: Wed, 3 Aug 2022 10:09:00 -0300 Subject: 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 --- setup.cfg | 1 + 1 file changed, 1 insertion(+) (limited to 'setup.cfg') diff --git a/setup.cfg b/setup.cfg index a4dbdd49..2e8999ce 100644 --- a/setup.cfg +++ b/setup.cfg @@ -45,6 +45,7 @@ ceilometer.sample.endpoint = ceilometer.discover.compute = local_instances = ceilometer.compute.discovery:InstanceDiscovery + local_node = ceilometer.polling.discovery.localnode:LocalNodeDiscovery ceilometer.discover.central = barbican = ceilometer.polling.discovery.non_openstack_credentials_discovery:NonOpenStackCredentialsDiscovery -- cgit v1.2.1