Browse Source

Don't stop Prometheus remote write collector when data is not available for dimension formatting (#10217)

Vladimir Kobal 4 years ago
parent
commit
58fba11d2a
1 changed files with 1 additions and 1 deletions
  1. 1 1
      exporting/prometheus/remote_write/remote_write.c

+ 1 - 1
exporting/prometheus/remote_write/remote_write.c

@@ -240,7 +240,7 @@ int format_dimension_prometheus_remote_write(struct instance *instance, RRDDIM *
                     (unsigned long)rd->last_collected_time.tv_sec,
                     (unsigned long)instance->after,
                     (unsigned long)instance->before);
-                return 1;
+                return 0;
             }
 
             if (homogeneous) {