Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions jun-telemetry.conf
Original file line number Diff line number Diff line change
Expand Up @@ -9,12 +9,14 @@ Influx_port = 8086
Influx_user = root
Influx_pass = root
Influx_database = telemetry
Influx_tls = False

[Telegraf]
Telegraf_server = localhost
Telegraf_port = 8186
Telegraf_user = root
Telegraf_pass = root
Telegraf_tls = False

[RouterSensors]
npu_util = npu-util-test
Expand Down
2 changes: 2 additions & 0 deletions jun-telemetry.py
Original file line number Diff line number Diff line change
Expand Up @@ -118,13 +118,15 @@ def telemetry_worker(pqueue):
conf["InfluxDB"]["Influx_user"],
conf["InfluxDB"]["Influx_pass"],
conf["InfluxDB"]["Influx_database"],
ssl = bool(conf["InfluxDB"]["Influx_tls"]),
) # InfluxDB definition
telegraf_client = InfluxDBClient(
conf["Telegraf"]["Telegraf_server"],
int(conf["Telegraf"]["Telegraf_port"]),
conf["Telegraf"]["Telegraf_user"],
conf["Telegraf"]["Telegraf_pass"],
"test",
ssl = bool(conf["Telegraf"]["Telegraf_tls"]),
)

logging.basicConfig(
Expand Down