summaryrefslogtreecommitdiffstats
path: root/docs/gw/kafka.rst
diff options
context:
space:
mode:
Diffstat (limited to 'docs/gw/kafka.rst')
-rw-r--r--docs/gw/kafka.rst6
1 files changed, 5 insertions, 1 deletions
diff --git a/docs/gw/kafka.rst b/docs/gw/kafka.rst
index 2bfe532a..6e3dedf3 100644
--- a/docs/gw/kafka.rst
+++ b/docs/gw/kafka.rst
@@ -14,6 +14,10 @@ following:
port=9092
topic=glances
#compression=gzip
+ # Tags will be added for all events
+ #tags=foo:bar,spam:eggs
+ # You can also use dynamic values
+ #tags=hostname:`hostname -f`
Note: you can enable the compression but it consume CPU on your host.
@@ -43,4 +47,4 @@ Python code example to consume Kafka Glances plugin:
consumer = KafkaConsumer('glances', value_deserializer=json.loads)
for s in consumer:
- print s
+ print(s)