diff options
author | Vladimir Kobal <vlad@prokk.net> | 2020-05-14 11:03:42 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-05-14 11:03:42 +0300 |
commit | f152ecf8ac5ba28df74567d4ad3b6033d36782d4 (patch) | |
tree | 881997893fdc7dc8605be04b1f7362f392c888f7 /exporting/json | |
parent | b5f8c224a9636c071fc474634380b4a93ea21c28 (diff) |
Fix wrong hostnames in the exporting engine (#8892)
Diffstat (limited to 'exporting/json')
-rw-r--r-- | exporting/json/json.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/exporting/json/json.c b/exporting/json/json.c index b334804cff..5534791f32 100644 --- a/exporting/json/json.c +++ b/exporting/json/json.c @@ -132,7 +132,7 @@ int format_dimension_collected_json_plaintext(struct instance *instance, RRDDIM "\"timestamp\":%llu}\n", engine->config.prefix, - engine->config.hostname, + (host == localhost) ? engine->config.hostname : host->hostname, tags_pre, tags, tags_post, @@ -209,7 +209,7 @@ int format_dimension_stored_json_plaintext(struct instance *instance, RRDDIM *rd "\"timestamp\": %llu}\n", engine->config.prefix, - engine->config.hostname, + (host == localhost) ? engine->config.hostname : host->hostname, tags_pre, tags, tags_post, |