diff options
author | Vladimir Kobal <vlad@prokk.net> | 2020-08-20 14:52:47 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-08-20 14:52:47 +0300 |
commit | 83e5cbe806bd81de526656df65ceb86bce17e392 (patch) | |
tree | b158e1c41a6460f7761b68b0a3d3c62b3727b16c | |
parent | eed186cffa7686a4459304d2e9a9be0ece7e093a (diff) |
Change timestamps for global variables in Prometheus output (#9779)
-rw-r--r-- | backends/prometheus/backend_prometheus.c | 2 | ||||
-rw-r--r-- | exporting/prometheus/prometheus.c | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/backends/prometheus/backend_prometheus.c b/backends/prometheus/backend_prometheus.c index f72e0a7ed8..a3ecf16ef3 100644 --- a/backends/prometheus/backend_prometheus.c +++ b/backends/prometheus/backend_prometheus.c @@ -205,7 +205,7 @@ static int print_host_variables(RRDVAR *rv, void *data) { , opts->labels , label_post , value - , ((rv->last_updated) ? rv->last_updated : opts->now) * 1000ULL + , opts->now * 1000ULL ); else buffer_sprintf(opts->wb, "%s_%s%s%s%s " CALCULATED_NUMBER_FORMAT "\n" diff --git a/exporting/prometheus/prometheus.c b/exporting/prometheus/prometheus.c index 17cf902ebb..f6854cf179 100644 --- a/exporting/prometheus/prometheus.c +++ b/exporting/prometheus/prometheus.c @@ -364,7 +364,7 @@ static int print_host_variables(RRDVAR *rv, void *data) opts->labels, label_post, value, - ((rv->last_updated) ? rv->last_updated : opts->now) * 1000ULL); + opts->now * 1000ULL); else buffer_sprintf( opts->wb, |