Shared File Systems Telemetry¶
Overview¶
Telemetry in the Shared File Systems service (Manila) allows operators to collect and monitor metrics related to shared file systems. These metrics help track resource usage, monitor performance, and support billing and auditing use cases.
In OpenStack deployments, telemetry is typically provided by services such as Ceilometer and Prometheus-based telemetry systems. These services collect and store metric data generated from notifications emitted by Manila.
Configuration¶
To enable telemetry notifications in the Shared File Systems service,
configure the following options in manila.conf:
[oslo_messaging_notifications] drivermust be set (for example,messagingv2) for notifications to be emitted.[oslo_messaging_notifications] topicsdefaults tonotifications.[DEFAULT] enable_gathering_share_usage_sizemust be set toTrueto emit periodic usage metrics. The default value isFalse.[DEFAULT] share_usage_size_update_intervaldefines the polling interval in seconds. The default value is300.
Notifications¶
The Shared File Systems service emits notifications via
oslo_messaging for various lifecycle events, including:
share.create.startandshare.create.endshare.delete.startandshare.delete.endshare.extend.startandshare.extend.endshare.shrink.startandshare.shrink.end
Additionally, periodic usage metrics are emitted. The corresponding Ceilometer meter for share size is:
manila.share.size
Snapshot-related notifications are currently not emitted by the service.
Ceilometer Metrics¶
If using Ceilometer, operators can access metrics derived from notifications. See:
Retrieving Metrics¶
Telemetry data collected from the Shared File Systems service can be accessed using OpenStack command-line tools when telemetry services are configured.
To list available metrics:
openstack metric list
To view details of a specific metric:
openstack metric show <metric-id>
To retrieve measurements for a metric:
openstack metric measures show <metric-id>
Notes¶
Ensure that telemetry services are properly configured and integrated with the Shared File Systems service. Without proper configuration, metrics may not be collected or available for querying.