From 01dcab85aa44f487b1e8fd2e2c791bbd8ead625e Mon Sep 17 00:00:00 2001 From: Florian Klink Date: Wed, 14 Jan 2015 08:17:07 +0100 Subject: [PATCH] docs/features/announce: rename gluon-announce to gluon-collect-data --- docs/features/announce.rst | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/docs/features/announce.rst b/docs/features/announce.rst index 9e2bf020..5a2d7eb5 100644 --- a/docs/features/announce.rst +++ b/docs/features/announce.rst @@ -8,7 +8,8 @@ IP addresses, location, software versions and various other information. Format of collected data ------------------------ -Information to be announced is currently split into two categories: +Data is collected by lua scripts in the `gluon-collect-data` package. +The data is currently grouped in two categories: nodeinfo In this category (mostly) static information is collected. If @@ -114,8 +115,8 @@ On optional timeout may be specified, e.g. `-t 5` (default: 3 seconds). Adding a fact ------------- -To add a fact just add a file to either ``/lib/gluon/announce/nodeinfo.d/`` or -``/lib/gluon/announce/statistics.d/``. +To add a fact just add a file to either ``/lib/gluon/collect-data/nodeinfo.d/`` or +``/lib/gluon/collect-data/statistics.d/``. The file must contain a lua script and its name will become the key for the resulting JSON object. A simple script adding a ``hostname`` field might look @@ -144,7 +145,7 @@ the resulting JSON would become: :: - # /lib/gluon/announce/announce.lua nodeinfo + # /lib/gluon/collect-data/generate_json.lua nodeinfo { "hardware" : { "model" : "TP-Link TL-MR3420 v1"