diff options
author | Vladimir Kobal <vlad@prokk.net> | 2020-12-14 16:25:13 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-12-14 16:25:13 +0200 |
commit | 81968dea3a411aed2f451a941354283b945a35de (patch) | |
tree | 58f9d1331a9bd7df27adc2e04e426220be9c0f07 /exporting/read_config.c | |
parent | c3b1528bb91250958c9947a33bb26c3a8e04bd38 (diff) |
Fix hostname configuration in the exporting engine (#10361)
Diffstat (limited to 'exporting/read_config.c')
-rw-r--r-- | exporting/read_config.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/exporting/read_config.c b/exporting/read_config.c index 3ace9c26e1..0cba4ad2c4 100644 --- a/exporting/read_config.c +++ b/exporting/read_config.c @@ -445,6 +445,8 @@ struct engine *read_exporting_config() tmp_instance->config.prefix = strdupz(exporter_get(instance_name, "prefix", "netdata")); + tmp_instance->config.hostname = strdupz(exporter_get(instance_name, "hostname", engine->config.hostname)); + #ifdef ENABLE_HTTPS #define STR_GRAPHITE_HTTPS "graphite:https" |