iostat
======
-This module shows the current throughput and IOPS done on the Ceph cluster.
+The ``iostat`` module shows the current throughput and IOPS done on the Ceph
+cluster.
Enabling
--------
-To check if the *iostat* module is enabled, run::
+To determine whether the ``iostat`` module is enabled, run the following
+command:
- ceph mgr module ls
+.. prompt:: bash #
-The module can be enabled with::
+ ceph mgr module ls
- ceph mgr module enable iostat
+To enable the ``iostat`` module, run the following command:
-To execute the module, run::
+.. prompt:: bash #
- ceph iostat
+ ceph mgr module enable iostat
+
+To execute the module, run the following command:
+
+.. prompt:: bash #
+
+ ceph iostat
To change the frequency at which the statistics are printed, use the ``-p``
-option::
+option:
+
+.. prompt:: bash #
+
+ ceph iostat -p <period in seconds>
- ceph iostat -p <period in seconds>
+For example, use the following command to print the statistics every 5
+seconds:
-For example, use the following command to print the statistics every 5 seconds::
+.. prompt:: bash #
- ceph iostat -p 5
+ ceph iostat -p 5
-To stop the module, press Ctrl-C.
+To stop the module, press ``Ctrl-C``.