summaryrefslogtreecommitdiffstats
path: root/exporting/opentsdb
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/opentsdb
parent6f3d87b2dd57a1511a91821ed0569a2f337d20fd (diff)
Read the prefix option from instance config sections (#9463)
Diffstat (limited to 'exporting/opentsdb')
-rw-r--r--exporting/opentsdb/opentsdb.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/exporting/opentsdb/opentsdb.c b/exporting/opentsdb/opentsdb.c
index 847c4f4a7c..76ee0a7bf2 100644
--- a/exporting/opentsdb/opentsdb.c
+++ b/exporting/opentsdb/opentsdb.c
@@ -179,7 +179,7 @@ int format_dimension_collected_opentsdb_telnet(struct instance *instance, RRDDIM
buffer_sprintf(
instance->buffer,
"put %s.%s.%s %llu " COLLECTED_NUMBER_FORMAT " host=%s%s%s%s\n",
- engine->config.prefix,
+ instance->config.prefix,
chart_name,
dimension_name,
(unsigned long long)rd->last_collected_time.tv_sec,
@@ -226,7 +226,7 @@ int format_dimension_stored_opentsdb_telnet(struct instance *instance, RRDDIM *r
buffer_sprintf(
instance->buffer,
"put %s.%s.%s %llu " CALCULATED_NUMBER_FORMAT " host=%s%s%s%s\n",
- engine->config.prefix,
+ instance->config.prefix,
chart_name,
dimension_name,
(unsigned long long)last_t,
@@ -336,7 +336,7 @@ int format_dimension_collected_opentsdb_http(struct instance *instance, RRDDIM *
" \"host\": \"%s%s%s\"%s"
" }"
"}",
- engine->config.prefix,
+ instance->config.prefix,
chart_name,
dimension_name,
(unsigned long long)rd->last_collected_time.tv_sec,
@@ -396,7 +396,7 @@ int format_dimension_stored_opentsdb_http(struct instance *instance, RRDDIM *rd)
" \"host\": \"%s%s%s\"%s"
" }"
"}",
- engine->config.prefix,
+ instance->config.prefix,
chart_name,
dimension_name,
(unsigned long long)last_t,