Github Mirror / telegraf-plugins: ac1fc1c9




Escape spaces in tag values

Escape spaces in tag values

Commit ac1fc1c9.

Authored 2022-05-11T20:02:07.000+01:00 by B Tasker in project Github Mirror / telegraf-plugins

+1 lines -1 lines

Commit Signature

Changes

diff --git a/tor-daemon/tor-daemon.py b/tor-daemon/tor-daemon.py
--- a/tor-daemon/tor-daemon.py
+++ b/tor-daemon/tor-daemon.py
# @@ -89,7 +89,7 @@ def build_lp(measurement_name, state):
#
# for entry in state["stats"]:
# if entry['fieldtype'] == "tag":
# - v = entry['name'] + "=" + entry["value"]
# + v = entry['name'] + "=" + entry["value"].replace(" ","\ ")
# lead.append(v)
# else:
# # It's a field
#