Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

1.0.0-rc0: Systemd version detection not working #1646

Closed
paulfantom opened this issue Mar 23, 2020 · 2 comments · Fixed by #1647
Closed

1.0.0-rc0: Systemd version detection not working #1646

paulfantom opened this issue Mar 23, 2020 · 2 comments · Fixed by #1647

Comments

@paulfantom
Copy link
Contributor

paulfantom commented Mar 23, 2020

Systemd detection on standard Fedora 30 system doesn't work and possibly prevents some collectors from working correctly.

Systemd reports:

$ systemctl --version
systemd 241 (v241-14.git18dd3fb.fc30)
+PAM +AUDIT +SELINUX +IMA -APPARMOR +SMACK +SYSVINIT +UTMP +LIBCRYPTSETUP +GCRYPT +GNUTLS +ACL +XZ +LZ4 +SECCOMP +BLKID +ELFUTILS +KMOD +IDN2 -IDN +PCRE2 default-hierarchy=hybrid

Host operating system: output of uname -a

Linux nas.ankhmorpork 5.5.9-100.fc30.x86_64 #1 SMP Thu Mar 12 14:15:32 UTC 2020 x86_64 x86_64 x86_64 GNU/Linux

node_exporter version: output of node_exporter --version

node_exporter, version 1.0.0-rc.0 (branch: HEAD, revision: ef7c05816adcb0e8923defe34e97f6afcce0a939)
  build user:       root@b38a2df1a38b
  build date:       20200220-12:54:05
  go version:       go1.13.8

node_exporter command line flags

    --collector.textfile \
    --collector.textfile.directory=/var/lib/node_exporter \
    --collector.filesystem \
    --collector.filesystem.ignored-fs-types=^(sys|proc|auto)fs$ \
    --collector.filesystem.ignored-mount-points=^/(sys|proc|dev|mnt/data|mnt/parity)($|/) \
    --collector.diskstats \
    --collector.diskstats.ignored-devices=^(dm-.*)$ \
    --collector.netdev \
    --collector.netdev.ignored-devices=^(veth.*|br.*)$ \
    --collector.systemd \
    --collector.systemd.enable-restarts-metrics \
    --no-collector.logind \
    --no-collector.ntp \
    --web.listen-address=0.0.0.0:9100

Are you running node_exporter in Docker?

no

What did you do that produced an error?

started a service

What did you expect to see?

no problems with systemd detection

What did you see instead?

Mar 23 11:50:42 nas.ankhmorpork node_exporter[5413]: level=warn ts=2020-03-23T10:50:42.884Z caller=systemd_linux.go:475 collector=systemd msg="Got invalid systemd version" version=v241-14.git18dd3fb.fc30
Mar 23 11:50:42 nas.ankhmorpork node_exporter[5413]: level=warn ts=2020-03-23T10:50:42.884Z caller=systemd_linux.go:126 collector=systemd msg="Detected systemd version is lower than minimum" current=0 minimum=212
@paulfantom
Copy link
Contributor Author

From release notes of systemd 241:

The version string shown by systemd and other tools now includes the git commit hash when built from git. An override may be specified during compilation, which is intended to be used by distributions to include the package release information.

@wiljay
Copy link

wiljay commented Mar 23, 2020

Hi Paulfantom,

I also encounter this problem, So,wait prometheus fix is issue?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants