提交 8fe037a7 编写于 作者: D Damien Martin

Fix warning on code-block directives

An argument is mandatory for the `code-block` directives.
上级 6036eeaa
...@@ -349,7 +349,7 @@ Each plugin and export module can have a section. ...@@ -349,7 +349,7 @@ Each plugin and export module can have a section.
Example for the CPU plugin: Example for the CPU plugin:
.. code-block:: .. code-block:: ini
[cpu] [cpu]
user_careful=50 user_careful=50
...@@ -368,7 +368,7 @@ Example for the CPU plugin: ...@@ -368,7 +368,7 @@ Example for the CPU plugin:
By default the ``steal`` CPU time alerts aren't logged. If you want to By default the ``steal`` CPU time alerts aren't logged. If you want to
enable log/alert, just add: enable log/alert, just add:
.. code-block:: .. code-block:: ini
steal_log=True steal_log=True
...@@ -778,7 +778,7 @@ By ``action``, we mean all shell command line. For example, if you want ...@@ -778,7 +778,7 @@ By ``action``, we mean all shell command line. For example, if you want
to execute the ``foo.py`` script if the last 5 minutes load are critical to execute the ``foo.py`` script if the last 5 minutes load are critical
then add the action line to the Glances configuration file: then add the action line to the Glances configuration file:
.. code-block:: .. code-block:: ini
[load] [load]
critical=5.0 critical=5.0
...@@ -788,7 +788,7 @@ All the stats are available in the command line through the use of the ...@@ -788,7 +788,7 @@ All the stats are available in the command line through the use of the
``{{mustache}}`` syntax. Another example would be to create a log file ``{{mustache}}`` syntax. Another example would be to create a log file
containing used vs total disk space if a space trigger warning is reached: containing used vs total disk space if a space trigger warning is reached:
.. code-block:: .. code-block:: ini
[fs] [fs]
warning=70 warning=70
...@@ -821,7 +821,7 @@ You can export statistics to an ``InfluxDB`` server (time series server). ...@@ -821,7 +821,7 @@ You can export statistics to an ``InfluxDB`` server (time series server).
The connection should be defined in the Glances configuration file as The connection should be defined in the Glances configuration file as
following: following:
.. code-block:: .. code-block:: ini
[influxdb] [influxdb]
host=localhost host=localhost
...@@ -840,7 +840,7 @@ InfluxDB 0.9.x or higher also supports an optional tags ...@@ -840,7 +840,7 @@ InfluxDB 0.9.x or higher also supports an optional tags
configuration parameter specified as comma separated, key:value pairs. configuration parameter specified as comma separated, key:value pairs.
For example: For example:
.. code-block:: .. code-block:: ini
[influxdb] [influxdb]
host=localhost host=localhost
...@@ -863,7 +863,7 @@ You can export statistics to an ``OpenTSDB`` server (time series server). ...@@ -863,7 +863,7 @@ You can export statistics to an ``OpenTSDB`` server (time series server).
The connection should be defined in the Glances configuration file as The connection should be defined in the Glances configuration file as
following: following:
.. code-block:: .. code-block:: ini
[opentsdb] [opentsdb]
host=localhost host=localhost
...@@ -884,7 +884,7 @@ You can export statistics to a ``Statsd`` server (welcome to Graphite!). ...@@ -884,7 +884,7 @@ You can export statistics to a ``Statsd`` server (welcome to Graphite!).
The connection should be defined in the Glances configuration file as The connection should be defined in the Glances configuration file as
following: following:
.. code-block:: .. code-block:: ini
[statsd] [statsd]
host=localhost host=localhost
...@@ -901,7 +901,7 @@ and run Glances with: ...@@ -901,7 +901,7 @@ and run Glances with:
Glances will generate stats as: Glances will generate stats as:
.. code-block:: .. code-block:: text
'glances.cpu.user': 12.5, 'glances.cpu.user': 12.5,
'glances.cpu.total': 14.9, 'glances.cpu.total': 14.9,
...@@ -916,7 +916,7 @@ You can export statistics to an ``RabbitMQ`` server (AMQP Broker). ...@@ -916,7 +916,7 @@ You can export statistics to an ``RabbitMQ`` server (AMQP Broker).
The connection should be defined in the Glances configuration file as The connection should be defined in the Glances configuration file as
following: following:
.. code-block:: .. code-block:: ini
[rabbitmq] [rabbitmq]
host=localhost host=localhost
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册