Bläddra i källkod

Show numeric PUB message

Jan-Piet Mens 12 år sedan
förälder
incheckning
272298a15b
1 ändrade filer med 12 tillägg och 1 borttagningar
  1. 12 1
      README.md

+ 12 - 1
README.md

@@ -14,7 +14,7 @@ numeric, these are then sent off to Carbon (see example below)
 
 * [mosquitto.py](http://mosquitto.org/documentation/python/)
 * A running Carbon/Graphite server with UDP-enabled reception
-* Access to an MQTT broker (I use [Mosquitto](http://mosquitto.org/))
+* Access to an MQTT broker. (I use [Mosquitto](http://mosquitto.org/))
 
 ## Running
 
@@ -22,6 +22,15 @@ numeric, these are then sent off to Carbon (see example below)
 * Edit the `map` file
 * Run `./mqtt2graphite.py`
 
+## Handling numeric payloads
+
+_mqtt2graphite_ assumes topics defined as `"n"` in the _map_ file contain a simple
+number (integer or float), published thusly:
+
+```
+mosquitto_pub  -t test/jp/j1 -m '69'
+```
+
 ## Handling JSON payloads
 
 ```
@@ -40,6 +49,8 @@ test.jp.j2.size 69.000000 1363169282
 
 A lot. 
 
+* Add configuration file in which we specify username/password, TLS certificates,
+  and path to the "map" file.
 * I'm not experienced enough with high volume of messages, so this should maybe
   transmit to Carbon via StatsD?