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 /backends/prometheus | |
parent | eed186cffa7686a4459304d2e9a9be0ece7e093a (diff) |
Change timestamps for global variables in Prometheus output (#9779)
Diffstat (limited to 'backends/prometheus')
-rw-r--r-- | backends/prometheus/backend_prometheus.c | 2 |
1 files changed, 1 insertions, 1 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" |