Merge pull request #7353 from Icinga/bugfix/influxdbwriter-skip-tags-7341

InfluxdbWriter: skip non-resolvable tags
This commit is contained in:
Michael Friedrich 2019-08-07 17:15:24 +02:00 committed by GitHub
commit d8400699f9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -258,8 +258,10 @@ void InfluxdbWriter::CheckResultHandlerWQ(const Checkable::Ptr& checkable, const
String missing_macro;
Value value = MacroProcessor::ResolveMacros(pair.second, resolvers, cr, &missing_macro);
if (!missing_macro.IsEmpty())
if (!missing_macro.IsEmpty()) {
tags->Remove(pair.first);
continue;
}
tags->Set(pair.first, value);
}