summaryrefslogtreecommitdiffstats
path: root/exporting/json
diff options
context:
space:
mode:
authorVladimir Kobal <vlad@prokk.net>2020-07-02 15:33:30 +0300
committerGitHub <noreply@github.com>2020-07-02 15:33:30 +0300
commit4f2de8d5107dbab1e845ae7d33da51ad58467978 (patch)
tree640b3f185fea5edca1f360ca70640b70ca12de7d /exporting/json
parent6f3d87b2dd57a1511a91821ed0569a2f337d20fd (diff)
Read the prefix option from instance config sections (#9463)
Diffstat (limited to 'exporting/json')
-rw-r--r--exporting/json/json.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/exporting/json/json.c b/exporting/json/json.c
index 1770e6222a..cea7eff07c 100644
--- a/exporting/json/json.c
+++ b/exporting/json/json.c
@@ -133,7 +133,7 @@ int format_dimension_collected_json_plaintext(struct instance *instance, RRDDIM
"\"timestamp\":%llu}\n",
- engine->config.prefix,
+ instance->config.prefix,
(host == localhost) ? engine->config.hostname : host->hostname,
tags_pre,
tags,
@@ -210,7 +210,7 @@ int format_dimension_stored_json_plaintext(struct instance *instance, RRDDIM *rd
"\"timestamp\": %llu}\n",
- engine->config.prefix,
+ instance->config.prefix,
(host == localhost) ? engine->config.hostname : host->hostname,
tags_pre,
tags,