mirror of
https://github.com/hikhvar/mqtt2prometheus.git
synced 2026-05-20 23:33:18 +00:00
Merge pull request #16 from pulsar256/feature/improve-docs
clarified usage of topic wildcard in examples/doc
This commit is contained in:
@@ -86,7 +86,7 @@ The config file can look like this:
|
||||
mqtt:
|
||||
# The MQTT broker to connect to
|
||||
server: tcp://127.0.0.1:1883
|
||||
# The Topic path to subscripe to. Be aware that you have to specify the wildcard.
|
||||
# The Topic path to subscribe to. Be aware that you have to specify the wildcard.
|
||||
topic_path: v1/devices/me/+
|
||||
# Optional: Regular expression to extract the device ID from the topic path. The default regular expression, assumes
|
||||
# that the last "element" of the topic_path is the device id.
|
||||
|
||||
@@ -5,7 +5,7 @@ mqtt:
|
||||
# Optional: Username and Password for authenticating with the MQTT Server
|
||||
# user: bob
|
||||
# password: happylittleclouds
|
||||
# The Topic path to subscripe to.
|
||||
# The Topic path to subscribe to. Be aware that you have to specify the wildcard.
|
||||
topic_path: v1/devices/me/+
|
||||
# Optional: Regular expression to extract the device ID from the topic path. The default regular expression, assumes
|
||||
# that the last "element" of the topic_path is the device id.
|
||||
|
||||
@@ -5,7 +5,7 @@ mqtt:
|
||||
# Optional: Username and Password for authenticating with the MQTT Server
|
||||
# user: bob
|
||||
# password: happylittleclouds
|
||||
# The Topic path to subscripe to. Actually this will become `$topic_path/+`
|
||||
# The Topic path to subscribe to. Be aware that you have to specify the wildcard.
|
||||
topic_path: tele/+/SENSOR
|
||||
# Optional: Regular expression to extract the device ID from the topic path. The default regular expression, assumes
|
||||
# that the last "element" of the topic_path is the device id.
|
||||
|
||||
@@ -5,8 +5,8 @@ mqtt:
|
||||
# Optional: Username and Password for authenticating with the MQTT Server
|
||||
# user: bob
|
||||
# password: happylittleclouds
|
||||
# The Topic path to subscripe to. Actually this will become `$topic_path/+`
|
||||
topic_path: v1/devices/me
|
||||
# The Topic path to subscribe to. Be aware that you have to specify the wildcard.
|
||||
topic_path: v1/devices/me/+
|
||||
# The MQTT QoS level
|
||||
qos: 0
|
||||
cache:
|
||||
|
||||
Reference in New Issue
Block a user