From a31d6bdec16ef5452e19479f807499dcf53c6dfb Mon Sep 17 00:00:00 2001 From: Leah Neukirchen Date: Fri, 12 Jul 2024 18:59:36 +0200 Subject: timex: also report node_time_seconds --- timex.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/timex.c b/timex.c index 91b8d7a..be46770 100644 --- a/timex.c +++ b/timex.c @@ -38,6 +38,8 @@ static void timex_collect(scrape_req *req, void *ctx) { scrape_write(req, "node_timex_tai_offset_seconds", 0, (double)buf.tai); scrape_write(req, "node_timex_tick_seconds", 0, buf.tick / 1e6); + scrape_write(req, "node_time_seconds", 0, buf.time.tv_sec + buf.time.tv_usec / 1e6); + #if NTP_PPS scrape_write(req, "node_timex_pps_calibraton_total", 0, (double)buf.calcnt); scrape_write(req, "node_timex_pps_error_total", 0, (double)buf.errcnt); -- cgit 1.4.1