Use FQDN instead of short hostname in all metrics
Change-Id: Ibf1b8888e4dec32ab563e7a6845266fc7c53fa45
This commit is contained in:
parent
1043c7e242
commit
b762b4f587
@ -1 +1 @@
|
||||
__version__ = '1.0.6'
|
||||
__version__ = '1.0.7'
|
||||
|
@ -88,7 +88,7 @@ def main(argv=None):
|
||||
agent_conf_path = os.path.join(args.config_dir, 'agent.conf')
|
||||
with open(os.path.join(args.template_dir, 'agent.conf.template'), 'r') as agent_template:
|
||||
with open(agent_conf_path, 'w') as agent_conf:
|
||||
agent_conf.write(agent_template.read().format(args=args, hostname=socket.gethostname()))
|
||||
agent_conf.write(agent_template.read().format(args=args, hostname=socket.getfqdn()))
|
||||
os.chown(agent_conf_path, 0, gid)
|
||||
os.chmod(agent_conf_path, 0o640)
|
||||
# Link the supervisor.conf
|
||||
|
Loading…
x
Reference in New Issue
Block a user