diff --git a/lib/guard.js b/lib/guard.js index 3d0a84d..cf9758a 100644 --- a/lib/guard.js +++ b/lib/guard.js @@ -139,13 +139,7 @@ const MetricsGuard = class MetricsGuard extends stream.Transform { // Set for the metric in the registry. the size of // this Set is compared with the threshold metric.labels.forEach((label) => { - if ( - label && - (label.name === null || - typeof label.name === "undefined" || - label.value === null || - typeof label.value === "undefined") - ) { + if (label && (label.name === null || typeof label.name === "undefined")) { hasInvalidLabelValue.push(`${metric.name} label name="${label.name}", value=${label.value}`); } else { entry.add(`${label.name}${SEPARATOR}${label.value}`);