Package: prometheus
Version: 2.24.1+ds-1
Severity: normal
X-Debbugs-Cc: dankamong...@gmail.com

Dear Maintainer,

I run prometheus on a Libre Computer Potato SBC, lacking an RTC,
collecting from prometheus-node-exporter on my workstation. In the
default configuration, prometheus fills logs with errors along the lines
of:

Aug 08 17:00:40 amoled prometheus[2337]: level=warn ts=2022-08-08T21:00:40.522Z 
caller=scrape.go:1372 component="scrape manager" scrape_pool=prometheus 
target=http://localhost:9090/metrics msg="Error on ingesting out-of-order 
samples" num_dropped=404

and doesn't append to my records. Upon restarting promtheus with

  systemctl restart prometheus

the problem goes away, and I can begin collecting stats anew.

I believe this is due to the prometheus service not depending on
time-sync.target. I've added

  [Unit]
  Before=time-sync.target
  Wants=time-sync.target

to a drop-in, and with this change, I do not hit the problem.

Given prometheus's fundamental dependency on time-ordered databases, I
feel this dependency ought be present in the default prometheus systemd
unit.

-- System Information:
Debian Release: bookworm/sid
  APT prefers unstable-debug
  APT policy: (500, 'unstable-debug'), (300, 'unstable'), (1, 'experimental')
Architecture: amd64 (x86_64)

Kernel: Linux 5.18.15nlb2 (SMP w/64 CPU threads)
Kernel taint flags: TAINT_PROPRIETARY_MODULE, TAINT_OOT_MODULE, 
TAINT_UNSIGNED_MODULE
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8), LANGUAGE not set
Shell: /bin/sh linked to /usr/bin/dash
Init: systemd (via /run/systemd/system)

Versions of packages prometheus depends on:
ii  adduser                                  3.123
ii  fonts-glyphicons-halflings               1.009~3.4.1+dfsg-2
ii  init-system-helpers                      1.64
ii  libc6                                    2.34-1
ii  libjs-bootstrap4                         4.6.1+dfsg1-3
pn  libjs-eonasdan-bootstrap-datetimepicker  <none>
ii  libjs-jquery                             3.6.0+dfsg+~3.5.13-1
ii  libjs-jquery-hotkeys                     0~20130707+git2d51e3a9+dfsg-2.1
pn  libjs-moment                             <none>
pn  libjs-moment-timezone                    <none>
pn  libjs-mustache                           <none>
ii  libjs-popper.js                          1.16.1+ds-5
pn  libjs-rickshaw                           <none>

Versions of packages prometheus recommends:
ii  prometheus-node-exporter  1.3.1-1+b1

prometheus suggests no packages.

Reply via email to