diff options
author | nicolargo <nicolas@nicolargo.com> | 2017-12-26 17:04:57 +0100 |
---|---|---|
committer | nicolargo <nicolas@nicolargo.com> | 2017-12-26 17:04:57 +0100 |
commit | 54b0c4e277c14454344e417163ae08aa37302ad8 (patch) | |
tree | fc3a70f9d52dc900f9ff667a636793f84c53d104 /docs/config.rst | |
parent | 3bad3b39b6ed806e434dfda43256a81a1d6b4219 (diff) |
Add dynamic fields in all sections of the configuration file #1204
Diffstat (limited to 'docs/config.rst')
-rw-r--r-- | docs/config.rst | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/docs/config.rst b/docs/config.rst index eb15a0bb..e525cb44 100644 --- a/docs/config.rst +++ b/docs/config.rst @@ -88,6 +88,24 @@ or a Nginx AMP: one_line=false status_url=http://localhost/nginx_status +With Glances 3.0 or higher it is also possible to use dynamic configuration +value using system command. For example, if you to set the prefix of an +InfluxDB export to the current hostname, use: + +.. code-block:: ini + + [influxdb] + ... + prefix=`hostname` + +Or if you want to add the Operating System name as a tag: + +.. code-block:: ini + + [influxdb] + ... + tags=system:`uname -a` + Logging ------- |