mirror of
https://github.com/valitydev/yandex-tank.git
synced 2024-11-06 02:15:22 +00:00
fix custom metrics with single quotes
This commit is contained in:
parent
5f430918c0
commit
1a323443c2
@ -174,7 +174,7 @@ class AgentConfig(object):
|
||||
inputs = ""
|
||||
for cmd in self.custom:
|
||||
inputs += "[[inputs.exec]]\n"
|
||||
inputs += 'commands = [\'/bin/bash -c "{}"\']\n'.format(
|
||||
inputs += 'commands = [\'\'\' /bin/bash -c "{}" \'\'\']\n'.format(
|
||||
cmd.get('cmd'))
|
||||
inputs += "data_format = 'value'\n"
|
||||
inputs += "data_type = 'integer'\n"
|
||||
|
Loading…
Reference in New Issue
Block a user