summaryrefslogtreecommitdiffstats
path: root/exporting
diff options
context:
space:
mode:
authorVladimir Kobal <vlad@prokk.net>2022-07-11 14:54:04 +0300
committerGitHub <noreply@github.com>2022-07-11 14:54:04 +0300
commitd0bf415190a6ebbe99533c04b2178923457edfbd (patch)
treeb12d75477c7af77bc90bce2e6b5fd07dc422e770 /exporting
parent7a67355e15ea1235fc46eb67f78d3a338ee66403 (diff)
Get rid of extra comma in OpenTSDB exporting (#13355)
Diffstat (limited to 'exporting')
-rw-r--r--exporting/opentsdb/opentsdb.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/exporting/opentsdb/opentsdb.c b/exporting/opentsdb/opentsdb.c
index 268a437372..25e7da5a51 100644
--- a/exporting/opentsdb/opentsdb.c
+++ b/exporting/opentsdb/opentsdb.c
@@ -286,8 +286,7 @@ int format_host_labels_opentsdb_http(struct instance *instance, RRDHOST *host) {
if (unlikely(!sending_labels_configured(instance)))
return 0;
- buffer_strcat(instance->labels_buffer, ",");
- rrdlabels_to_buffer(host->host_labels, instance->labels_buffer, "", ":", "\"", ",",
+ rrdlabels_to_buffer(host->host_labels, instance->labels_buffer, ",", ":", "\"", "",
exporting_labels_filter_callback, instance,
NULL, sanitize_opentsdb_label_value);
return 0;