-
Notifications
You must be signed in to change notification settings - Fork 198
Add needrestart_info.py to monitore needrestart. #195
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
Add needrestart_info.py to monitore needrestart. #195
Conversation
5b4eb3b
to
eb588ef
Compare
Signed-off-by: RomainMou <[email protected]>
Signed-off-by: RomainMou <[email protected]>
80c82a9
to
d805647
Compare
Hello @funkyfuture, thanks for all your feedback, they are very appreciate for a beginner like me. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lgtm, i've been using it for some weeks now.
Is there anything missing to merge this PR? Anything I can do? |
Please also check that your metric names conform to the Prometheus best practice guide: https://prometheus.io/docs/practices/naming/ |
Signed-off-by: RomainMou <[email protected]>
Signed-off-by: RomainMou <[email protected]>
Signed-off-by: RomainMou <[email protected]>
62b5d2e
to
ce87ff3
Compare
Signed-off-by: RomainMou <[email protected]>
Signed-off-by: RomainMou <[email protected]>
…y#195) Add needrestart_info.py to monitor needrestart Signed-off-by: RomainMou <[email protected]>
Just for the records: There's has also been something coded in |
should we consider removing this code, considering there's now something upstream? as one of those who worked on the upstream code, i would much rather see people collaborate there instead of duplicating the efforts here... |
fwiw the new So I'm guessing this script will still be useful for some folks until the new option becomes widely available. Maybe we should mark this script as deprecated somehow and wait for the new needrestart option to become more widely available before actually removing it |
On 2025-01-09 07:34:34, Gabriel Filion wrote:
> > Just for the records: There's has also been something coded in `needrestart` itself: [liske/needrestart#291](liske/needrestart#291)
>
> should we consider removing this code, considering there's now something upstream? as one of those who worked on the upstream code, i would much rather see people collaborate there instead of duplicating the efforts here...
fwiw the new `needrestart -o` has been merged upstream, but it'll take a while for that version to be included in a new distro release anywhere. for example in debian it's going to be available in Trixie when it's released.
So I'm guessing this script will still be useful for some folks until the new option becomes widely available. Maybe we should mark this script as deprecated somehow and wait for the new needrestart option to become more widely available before actually removing it
Yeah, that makes sense. In that case Someone should at least make sure
the metrics are either similar enough that they're compatible, or that
the namespaces are distinct to provide a clean transition. :)
|
Hi,
I've made a small script to retrieve some metrics from
needrestart
, and perhaps it could be useful for others?The script runs
needrestart -b
(batch mode), parses the output, and displays some metrics. It looks like this: