-
Notifications
You must be signed in to change notification settings - Fork 2.3k
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
Consider tracking whether the machine would like a reboot (/var/run/reboot-required
)
#625
Comments
Having a gauge metric for the existence of We could possibly support it, but have the feature disabled by default due to the distribution specific nature of it. |
This has come up previously in various forms such as needing to do an apt-get upgrade. It's very distribution specific and we've previously said to use the textfile collector. |
This specific one is much more appropriate as it's checking for file existence, rather than needing to execute or access a package database. |
@andrewhowdencom Related, if you wanted to contribute a cleaned up version of #496, I would appreciate it. |
@SuperQ I had intended to do that with OSQuery and the relevant exporter: https://github.com/zwopir/osquery_exporter (not something I've gotten around to just yet). Still, doing it with bash seems like a trivial solution daily or something -- I'll take a look as I have time. I am going to close this -- it seems reasonable to mark distro specific stuff out of bounds of the exporter. All else fails, i can always write "debian_exporter" |
A |
Just for the records... needrestart would be a distro-agnostic way to detect whether services, kernel, microcode or even, single (non-daemon) processes need restarts. It even already provides a icinga/nagios check, so it should probably be easy to also craft something for prometheus. |
two things here:
I opened an issue in needrestart for this: liske/needrestart#291 I would welcome feedback on the proposed metrics names there... In my mind, this could be a cron job that punts things into the node exporter textfile directory, simply, but could be done in a number of ways... |
Host operating system: output of
uname -a
Debian / Ubuntu
node_exporter version: output of
node_exporter -version
Are you running node_exporter in Docker?
Negative
What is the feature that you wish to see?
Debian flavour operating systems have the capability to perform unattended upgrades. These are fairly reliable; enough so that fault tolerant systems can be upgraded automatically. However, in some cases the upgrades are such that they require a machine restart. In some cases, it may not be desirable to restart the system on an ad-hoc basis -- instead, to schedule the restart at a later date.
They express this need by writing a file to
/var/run/reboot-required
. This is picked up in/etc/update-motd.d/
, were it's existence is checked.Alternatives
This might not be within the scope of what the node exporter should be querying. Currently, I plan to write a cron job that polls this file, and writes whether it exists to the textfile dir. Alternatively, something like
osquery
and the exporter therein might be suitable.The text was updated successfully, but these errors were encountered: