Improve analytcs meter tas consistency

This commit is contained in:
Christian Tzolov
2020-12-07 13:25:58 +01:00
parent 373de5e867
commit 18a29fd0fc

View File

@@ -111,7 +111,9 @@ public class AnalyticsConsumerConfiguration {
*/
protected List<String> toList(Object value) {
if (value == null) {
return Collections.emptyList();
// Ensure that the tag is present in the meter metrics, even if empty.
// TSDB as Prometheus do not tolerate same meters to have different tags signatures.
return Collections.singletonList("n.a");
}
if ((value instanceof Collection) || ObjectUtils.isArray(value)) {