Efficiently polls metering data related to OpenStack services.
Collects event and metering data by monitoring notifications sent from services.
Publishes collected data to various targets including data stores and message queues.
Creates alarms when collected data breaks defined rules.
Telemetry 模块通常包含下面组件:
A compute agent (ceilometer-agent-compute) 运行在每个计算节点中,推送资源的使用状态,也许在未来会有其他类型的代理,但是目前来说社区专注于创建计算节点代理。
A central agent (ceilometer-agent-central) Runs on a central management server to poll for resource utilization statistics for resources not tied to instances or compute nodes. Multiple agents can be started to scale service horizontally.
A notification agent (ceilometer-agent-notification) Runs on a central management server(s) and consumes messages from the message queue(s) to build event and metering data.
A collector (ceilometer-collector) 运行在一个或多个中心管理服务器,当警告发生是由于相关联的统计趋势超过阈值以上的滑动时间窗口,然后作出决定。
An alarm evaluator (ceilometer-alarm-evaluator) 运行在一个或多个中心管理服务器,允许警告为一组收集的实例基于评估阀值来设置。
An alarm notifier (ceilometer-alarm-notifier) Runs on one or more central management servers to allow alarms to be set based on the threshold evaluation for a collection of samples.
An API server (ceilometer-api) 运行在一个或多个中心管理服务器,提供从数据存储的数据访问。
To retrieve image-oriented events and samples, configure the Image service to send notifications to the message bus. Perform these steps on the controller node.
To retrieve volume-oriented events and samples, you must configure the Block Storage service to send notifications to the message bus. Perform these steps on the controller and storage nodes.
Use the cinder-volume-usage-audit command to retrieve metrics on demand. For more information, see Block Storage audit script setup to get notifications.
Configure the Object Storage service
To retrieve storage-oriented events and samples, configure the Object Storage service to send notifications to the message bus.
The Telemetry service requires access to the Object Storage service using the ResellerAdmin role. Perform these steps on the controller node.
Source the admin credentials to gain access to admin-only CLI commands.
# source admin-openrc.sh
Create the ResellerAdmin role:
# openstack role create ResellerAdmin
添加 ResellerAdmin role to the service tenant and ceilometer user:
# openstack role add --project service --user ceilometer ResellerAdmin
Perform these steps on the controller and any other nodes that run the Object Storage proxy service.