summaryrefslogtreecommitdiffstats
path: root/docs/aoa/amps.rst
diff options
context:
space:
mode:
Diffstat (limited to 'docs/aoa/amps.rst')
-rw-r--r--docs/aoa/amps.rst8
1 files changed, 8 insertions, 0 deletions
diff --git a/docs/aoa/amps.rst b/docs/aoa/amps.rst
index 5de564ab..f44f9dd3 100644
--- a/docs/aoa/amps.rst
+++ b/docs/aoa/amps.rst
@@ -96,6 +96,14 @@ Embedded AMP
Glances provides some specific AMP scripts (replacing the ``command``
line). You can write your own AMP script to fill your needs. AMP scripts
are located in the ``amps`` folder and should be named ``glances_*.py``.
+
+You can also overwrite this default location by adding the following
+configuration key to your AMP configuration section (it should be a
+folder):
+
+ [amp_foo]
+ plugin_path=/home/foo
+
An AMP script define an Amp class (``GlancesAmp``) with a mandatory
update method. The update method call the ``set_result`` method to set
the AMP return string. The return string is a string with one or more