diff options
author | nicolargo <nicolashennion@gmail.com> | 2020-02-27 15:17:24 +0100 |
---|---|---|
committer | nicolargo <nicolashennion@gmail.com> | 2020-02-27 15:17:24 +0100 |
commit | f6533272a5a61d13a4041d84c43adeffee926aef (patch) | |
tree | 4ac21a9b90046ae9a093a94a869ccce73374b725 /docs/gw | |
parent | 1e8bf7bd5fdec1d2b8eb85e57a38096466f1b5d9 (diff) |
Feature request: Include hostname in all (e.g. kafka) exports #1594
Diffstat (limited to 'docs/gw')
-rw-r--r-- | docs/gw/influxdb.rst | 5 | ||||
-rw-r--r-- | docs/gw/kafka.rst | 6 |
2 files changed, 9 insertions, 2 deletions
diff --git a/docs/gw/influxdb.rst b/docs/gw/influxdb.rst index a14f75c8..43db9df9 100644 --- a/docs/gw/influxdb.rst +++ b/docs/gw/influxdb.rst @@ -16,7 +16,10 @@ following: user=root password=root db=glances - tags=foo:bar,spam:eggs + # Tags will be added for all measurements + #tags=foo:bar,spam:eggs + # You can also use dynamic values + #tags=system:`uname -s` and run Glances with: 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) |