diff --git a/tactical_agents_telegraf.py b/tactical_agents_telegraf.py index ca76c3d..2189c83 100644 --- a/tactical_agents_telegraf.py +++ b/tactical_agents_telegraf.py @@ -87,7 +87,7 @@ class Agent(object): def delete_conflict_characters(value_dict): new_dict = {} for key, value in value_dict.items(): - new_value = str(value).replace('[', '').replace(']', '') + new_value = str(value).replace('[', '').replace(']', '').replace('\\', '') new_dict[key] = new_value return new_dict @@ -117,5 +117,3 @@ telegraf_client = TelegrafClient(host=config['telegraf']['host'], port=config['t for agent in agent_list: a = Agent(agent, api) a.send_agent_metrics(telegraf_client) - for k, v in a.get_agent_metrics().items(): - print(k, v)