Fixed problem with opentsdb sending metrics

There is a double space between the value and the tags causing an error with missing tag when ingesting the data

refs #8244
This commit is contained in:
Paul Denning 2020-09-18 09:25:13 +10:00 committed by ragnra
parent 2dfe777f48
commit 570a59a2f4
1 changed files with 1 additions and 1 deletions

View File

@ -376,7 +376,7 @@ void OpenTsdbWriter::SendMetric(const Checkable::Ptr& checkable, const String& m
* put <metric> <timestamp> <value> <tagk1=tagv1[ tagk2=tagv2 ...tagkN=tagvN]>
* "tags" must include at least one tag, we use "host=HOSTNAME"
*/
msgbuf << "put " << metric << " " << static_cast<long>(ts) << " " << Convert::ToString(value) << " " << tags_string;
msgbuf << "put " << metric << " " << static_cast<long>(ts) << " " << Convert::ToString(value) << tags_string;
Log(LogDebug, "OpenTsdbWriter")
<< "Checkable '" << checkable->GetName() << "' adds to metric list: '" << msgbuf.str() << "'.";