|
@@ -14,7 +14,7 @@ numeric, these are then sent off to Carbon (see example below)
|
|
|
|
|
|
* [mosquitto.py](http://mosquitto.org/documentation/python/)
|
|
* [mosquitto.py](http://mosquitto.org/documentation/python/)
|
|
* A running Carbon/Graphite server with UDP-enabled reception
|
|
* 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
|
|
## Running
|
|
|
|
|
|
@@ -22,6 +22,15 @@ numeric, these are then sent off to Carbon (see example below)
|
|
* Edit the `map` file
|
|
* Edit the `map` file
|
|
* Run `./mqtt2graphite.py`
|
|
* 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
|
|
## Handling JSON payloads
|
|
|
|
|
|
```
|
|
```
|
|
@@ -40,6 +49,8 @@ test.jp.j2.size 69.000000 1363169282
|
|
|
|
|
|
A lot.
|
|
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
|
|
* I'm not experienced enough with high volume of messages, so this should maybe
|
|
transmit to Carbon via StatsD?
|
|
transmit to Carbon via StatsD?
|
|
|
|
|