@cryptotaxi247 / netdata-1 / commits / 83e5cbe80

Change timestamps for global variables in Prometheus output (#9779)

Vladimir Kobal committed Aug 20, 2020 at 14:52 UTC 83e5cbe806bd81de526656df65ceb86bce17e392
2 files changed +2 -2
backends/prometheus/backend_prometheus.c
+1 -1
@@ -205,7 +205,7 @@ static int print_host_variables(RRDVAR *rv, void *data) {
205 , opts->labels
206 , label_post
207 , value
208 - , ((rv->last_updated) ? rv->last_updated : opts->now) * 1000ULL
208 + , opts->now * 1000ULL
209 );
210 else
211 buffer_sprintf(opts->wb, "%s_%s%s%s%s " CALCULATED_NUMBER_FORMAT "\n"
exporting/prometheus/prometheus.c
+1 -1
@@ -364,7 +364,7 @@ static int print_host_variables(RRDVAR *rv, void *data)
364 opts->labels,
365 label_post,
366 value,
367 - ((rv->last_updated) ? rv->last_updated : opts->now) * 1000ULL);
367 + opts->now * 1000ULL);
368 else
369 buffer_sprintf(
370 opts->wb,