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

implement handling of systemd active (exited) status #1350

Open
sigurdblueface opened this issue May 20, 2019 · 4 comments
Open

implement handling of systemd active (exited) status #1350

sigurdblueface opened this issue May 20, 2019 · 4 comments

Comments

@sigurdblueface
Copy link

Host operating system: output of uname -a

uname -a
Linux test-zone-1 3.16.0-4-amd64 #1 SMP Debian 3.16.51-3 (2017-12-13) x86_64 GNU/Linux

node_exporter version: output of node_exporter --version

node_exporter, version 0.17.0 (branch: HEAD, revision: f6f6194)
build user: root@322511e06ced
build date: 20181130-15:51:33
go version: go1.11.2

node_exporter command line flags

  - '--path.rootfs=/'
  - '--collector.systemd'

Are you running node_exporter in Docker?

yes. via docker compose
docker -v
Docker version 18.06.3-ce, build d7080c1
docker-compose -v
docker-compose version 1.24.0-rc1, build 0f3d4dda

What did you do that produced an error?

suddenly my service became active (exited)

What did you expect to see?

I expected to see a change of a metric value
node_systemd_unit_state{state=active}

What did you see instead?

metric stood at value of 1.

and that there's no difference between active (running) and active (exited) statuses for the exporter.

Is there a possibility to handle such cases?

@SuperQ
Copy link
Member

SuperQ commented May 20, 2019

Hrm, good question, sometimes "active exited" is what people want. I guess we should have a separate state bit for this.

@discordianfish
Copy link
Member

Wondering (once again) whether we should just spin out all the systemd stuff from the node-exporter..

@SuperQ
Copy link
Member

SuperQ commented May 27, 2019

@discordianfish There is a systemd_exporter being worked on, should replace the node_exporter stuff eventually.

@EpiqSty
Copy link

EpiqSty commented Apr 21, 2020

btw, seems systemd_exporter also not going to support unit substates before facing the real demand for such advanced feature
¯\_(ツ)_/¯
prometheus-community/systemd_exporter#12

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

No branches or pull requests

4 participants