2017-07-18 22:33:55 +00:00
=============
2019-02-27 12:49:47 +00:00
Influx Module
2017-07-18 22:33:55 +00:00
=============
2019-02-27 12:49:47 +00:00
The influx module continuously collects and sends time series data to an
2017-09-12 12:05:28 +00:00
influxdb database.
2017-07-18 22:33:55 +00:00
2019-02-27 12:49:47 +00:00
The influx module was introduced in the 13.x *Mimic* release.
2017-07-18 22:33:55 +00:00
2017-09-12 12:05:28 +00:00
--------
Enabling
--------
2017-07-18 22:33:55 +00:00
2017-09-12 12:05:28 +00:00
To enable the module, use the following command:
2017-07-18 22:33:55 +00:00
2017-09-12 12:05:28 +00:00
::
2017-07-18 22:33:55 +00:00
2017-09-12 12:05:28 +00:00
ceph mgr module enable influx
2017-07-18 22:33:55 +00:00
2017-09-12 12:05:28 +00:00
If you wish to subsequently disable the module, you can use the equivalent
*disable* command:
2017-07-18 22:33:55 +00:00
2017-09-12 12:05:28 +00:00
::
2017-07-18 22:33:55 +00:00
2017-09-12 12:05:28 +00:00
ceph mgr module disable influx
2017-07-18 22:33:55 +00:00
2017-09-12 12:05:28 +00:00
-------------
Configuration
-------------
2017-07-18 22:33:55 +00:00
2017-09-12 12:05:28 +00:00
For the influx module to send statistics to an InfluxDB server, it
is necessary to configure the servers address and some authentication
credentials.
2017-07-18 22:33:55 +00:00
2017-09-12 12:05:28 +00:00
Set configuration values using the following command:
2017-07-18 22:33:55 +00:00
2017-09-12 12:05:28 +00:00
::
2017-07-18 22:33:55 +00:00
2018-04-16 21:30:18 +00:00
ceph config set mgr mgr/influx/<key> <value>
2017-07-18 22:33:55 +00:00
2017-09-12 12:05:28 +00:00
The most important settings are `` hostname `` , `` username `` and `` password `` .
For example, a typical configuration might look like this:
2017-07-18 22:33:55 +00:00
2017-09-12 12:05:28 +00:00
::
2017-07-18 22:33:55 +00:00
2018-04-16 21:30:18 +00:00
ceph config set mgr mgr/influx/hostname influx.mydomain.com
ceph config set mgr mgr/influx/username admin123
ceph config set mgr mgr/influx/password p4ssw0rd
2017-09-12 12:05:28 +00:00
Additional optional configuration settings are:
2017-07-18 22:33:55 +00:00
2018-08-06 09:45:13 +00:00
:interval: Time between reports to InfluxDB. Default 30 seconds.
2017-10-03 20:30:43 +00:00
:database: InfluxDB database name. Default "ceph". You will need to create this database and grant write privileges to the configured username or the username must have admin privileges to create it.
2017-09-12 12:05:28 +00:00
:port: InfluxDB server port. Default 8086
2017-12-13 18:14:50 +00:00
:ssl: Use https connection for InfluxDB server. Use "true" or "false". Default false
:verify_ssl: Verify https cert for InfluxDB server. Use "true" or "false". Default true
2018-08-06 09:45:13 +00:00
:threads: How many worker threads should be spawned for sending data to InfluxDB. Default is 5
:batch_size: How big batches of data points should be when sending to InfluxDB. Default is 5000
2017-07-18 22:33:55 +00:00
---------
Debugging
---------
2018-09-18 03:19:18 +00:00
By default, a few debugging statements as well as error statements have been set to print in the log files. Users can add more if necessary.
2017-07-18 22:33:55 +00:00
To make use of the debugging option in the module:
- Add this to the ceph.conf file.::
[mgr]
debug_mgr = 20
2019-09-10 15:56:54 +00:00
- Use this command `` ceph influx self-test `` .
2017-07-18 22:33:55 +00:00
- Check the log files. Users may find it easier to filter the log files using *mgr[influx]* .
2017-09-12 12:05:28 +00:00
--------------------
Interesting counters
--------------------
2017-07-18 22:33:55 +00:00
2017-09-12 12:05:28 +00:00
The following tables describe a subset of the values output by
this module.
2017-07-18 22:33:55 +00:00
2017-09-12 12:05:28 +00:00
^^^^^
Pools
^^^^^
2017-07-18 22:33:55 +00:00
+---------------+-----------------------------------------------------+
|Counter | Description |
+===============+=====================================================+
2018-10-22 11:46:55 +00:00
|stored | Bytes stored in the pool not including copies |
2017-07-18 22:33:55 +00:00
+---------------+-----------------------------------------------------+
|max_avail | Max available number of bytes in the pool |
+---------------+-----------------------------------------------------+
|objects | Number of objects in the pool |
+---------------+-----------------------------------------------------+
|wr_bytes | Number of bytes written in the pool |
+---------------+-----------------------------------------------------+
|dirty | Number of bytes dirty in the pool |
+---------------+-----------------------------------------------------+
|rd_bytes | Number of bytes read in the pool |
+---------------+-----------------------------------------------------+
2018-10-22 11:46:55 +00:00
|stored_raw | Bytes used in pool including copies made |
2017-07-18 22:33:55 +00:00
+---------------+-----------------------------------------------------+
2017-09-12 12:05:28 +00:00
^^^^
OSDs
^^^^
2017-07-18 22:33:55 +00:00
+------------+------------------------------------+
|Counter | Description |
+============+====================================+
|op_w | Client write operations |
+------------+------------------------------------+
|op_in_bytes | Client operations total write size |
+------------+------------------------------------+
|op_r | Client read operations |
+------------+------------------------------------+
|op_out_bytes| Client operations total read size |
+------------+------------------------------------+
+------------------------+--------------------------------------------------------------------------+
|Counter | Description |
+========================+==========================================================================+
|op_wip | Replication operations currently being processed (primary) |
+------------------------+--------------------------------------------------------------------------+
|op_latency | Latency of client operations (including queue time) |
+------------------------+--------------------------------------------------------------------------+
|op_process_latency | Latency of client operations (excluding queue time) |
+------------------------+--------------------------------------------------------------------------+
|op_prepare_latency | Latency of client operations (excluding queue time and wait for finished)|
+------------------------+--------------------------------------------------------------------------+
|op_r_latency | Latency of read operation (including queue time) |
+------------------------+--------------------------------------------------------------------------+
|op_r_process_latency | Latency of read operation (excluding queue time) |
+------------------------+--------------------------------------------------------------------------+
|op_w_in_bytes | Client data written |
+------------------------+--------------------------------------------------------------------------+
|op_w_latency | Latency of write operation (including queue time) |
+------------------------+--------------------------------------------------------------------------+
|op_w_process_latency | Latency of write operation (excluding queue time) |
+------------------------+--------------------------------------------------------------------------+
|op_w_prepare_latency | Latency of write operations (excluding queue time and wait for finished) |
+------------------------+--------------------------------------------------------------------------+
|op_rw | Client read-modify-write operations |
+------------------------+--------------------------------------------------------------------------+
|op_rw_in_bytes | Client read-modify-write operations write in |
+------------------------+--------------------------------------------------------------------------+
|op_rw_out_bytes | Client read-modify-write operations read out |
+------------------------+--------------------------------------------------------------------------+
|op_rw_latency | Latency of read-modify-write operation (including queue time) |
+------------------------+--------------------------------------------------------------------------+
|op_rw_process_latency | Latency of read-modify-write operation (excluding queue time) |
+------------------------+--------------------------------------------------------------------------+
|op_rw_prepare_latency | Latency of read-modify-write operations (excluding queue time |
| | and wait for finished) |
+------------------------+--------------------------------------------------------------------------+
|op_before_queue_op_lat | Latency of IO before calling queue (before really queue into ShardedOpWq)|
| | op_before_dequeue_op_lat |
+------------------------+--------------------------------------------------------------------------+
|op_before_dequeue_op_lat| Latency of IO before calling dequeue_op(already dequeued and get PG lock)|
+------------------------+--------------------------------------------------------------------------+
2017-09-12 12:05:28 +00:00
Latency counters are measured in microseconds unless otherwise specified in the description.