-
-
Notifications
You must be signed in to change notification settings - Fork 14.1k
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
scaphandre: init at 0.5.0 #238462
scaphandre: init at 0.5.0 #238462
Conversation
4f37601
to
a1505af
Compare
a1505af
to
64ce11e
Compare
pkgs/servers/scaphandre/default.nix
Outdated
dieHook | ||
]; | ||
} '' | ||
${scaphandre}/bin/scaphandre stdout -t 4 > $out || die "Scaphandre failed to measure consumption" |
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.
didn't you say you need intel_rapl_common? how is it supposed to work on non-Intel machines?
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.
Yes it does, I thought that when building the package it was going through the tests. Should I extract it into a nixosTest ? According to the compatibility page, the sensor is available on Intel & AMD but I don't know how to handle that.
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.
I added a nixosTest to ensure kernel module intel_rapl_common
is activated.
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.
Some minor changes, untested yet, but seems good.
64ce11e
to
26b3fc1
Compare
26b3fc1
to
354e63f
Compare
* scaphandre: init at 0.5.0 * Update pkgs/servers/scaphandre/default.nix --------- Co-authored-by: Pol Dellaiera <pol.dellaiera@protonmail.com>
Description of changes
Scaphandre is an energy consumption metrology agent that supports various time series databases such as prometheus.
I deployed this package on three hosts to expose metrics to prometheus and it works fine, the only requirement is to have
intel_rapl_common
kernel module enable.As it is a new package, it could be backported to 23.05.
Things done
sandbox = true
set innix.conf
? (See Nix manual)nix-shell -p nixpkgs-review --run "nixpkgs-review rev HEAD"
. Note: all changes have to be committed, also see nixpkgs-review usage./result/bin/
)