-
Notifications
You must be signed in to change notification settings - Fork 4
/
telegraf-example.conf
54 lines (47 loc) · 1.28 KB
/
telegraf-example.conf
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
# rename to telegraf.conf
[agent]
flush_interval = "15s"
interval = "15s"
[[inputs.mqtt_consumer]]
name_override = "TTN"
servers = ["tcp://eu.thethings.network:1883"]
qos = 0
connection_timeout = "30s"
topics = [ "+/devices/+/up" ]
client_id = "ttn"
username = "insert the TTN application name"
password = "ttn-account-key found at the bottom of your TTN application console"
data_format = "json"
[[outputs.influxdb]]
database = "iot"
urls = [ "http://influxdb:8086" ]
username = "telegraf"
password = "superpa$$word"x
[agent]
flush_interval = "15s"
interval = "15s"
[[inputs.mqtt_consumer]]
name_override = "TTN"
servers = ["tcp://eu.thethings.network:1883"]
qos = 0
connection_timeout = "30s"
topics = [ "+/devices/#" ]
client_id = "ttn"
username = "test-sensor-vancouver"
password = "ttn-account-v2.e4oOjaT13K5I17-GInKzg37m0korEyRFaKQ0fNyMtpQ"
data_format = "json"
[[inputs.mqtt_consumer]]
name_override = "sjolab"
servers = ["tcp://sjolab.lnu.se:1883"]
qos = 0
connection_timeout = "30s"
topics = [ "+/devices/#" ]
client_id = "ttn"
username = "iotlnu"
password = "micropython"
data_format = "json"
[[outputs.influxdb]]
database = "iot"
urls = [ "http://influxdb:8086" ]
username = "telegraf"
password = "superpa$$word"