diff options
author | Vladimir Kobal <vlad@prokk.net> | 2022-07-11 14:54:04 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-07-11 14:54:04 +0300 |
commit | d0bf415190a6ebbe99533c04b2178923457edfbd (patch) | |
tree | b12d75477c7af77bc90bce2e6b5fd07dc422e770 /exporting/opentsdb | |
parent | 7a67355e15ea1235fc46eb67f78d3a338ee66403 (diff) |
Get rid of extra comma in OpenTSDB exporting (#13355)
Diffstat (limited to 'exporting/opentsdb')
-rw-r--r-- | exporting/opentsdb/opentsdb.c | 3 |
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; |