Last active
March 11, 2023 13:50
-
-
Save jcaesar/aa87c5ba45ecd31f0d2a6b66bb138cf0 to your computer and use it in GitHub Desktop.
prometheus-node-exporter-rapl-cfg
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
pkg/ | |
src/ | |
*.pkg.tar.zst |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
pkgbase = prometheus-node-exporter-rapl-cfg | |
pkgdesc = powercap group and read access for intel_rapl_common /sys files | |
pkgver = 0.1.0 | |
pkgrel = 1 | |
arch = any | |
license = Apache | |
makedepends = rust | |
source = modules-load.d | |
source = prometheus-node-exporter.d | |
source = sysusers | |
source = udev-rules.d | |
sha512sums = SKIP | |
sha512sums = SKIP | |
sha512sums = SKIP | |
sha512sums = SKIP | |
pkgname = prometheus-node-exporter-rapl-cfg |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
intel_rapl_common |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Maintainer: Julius Michaelis <[email protected]> | |
pkgname=prometheus-node-exporter-rapl-cfg | |
pkgver=0.1.0 | |
pkgrel=1 | |
pkgdesc="powercap group and read access for intel_rapl_common /sys files" | |
arch=('any') | |
license=(Apache) | |
depends=() | |
makedepends=('rust') | |
source=(modules-load.d prometheus-node-exporter.d sysusers udev-rules.d) | |
sha512sums=( | |
SKIP SKIP SKIP SKIP | |
) | |
package() { | |
install -Dm0644 prometheus-node-exporter.d "$pkgdir"/usr/lib/systemd/system/prometheus-node-exporter.service.d/powercap.conf | |
install -Dm0644 modules-load.d "$pkgdir"/usr/lib/modules-load.d/intel_rapl_common.conf | |
install -Dm0644 udev-rules.d "$pkgdir"/usr/lib/udev/rules.d/20-energy_uj_owner.rules | |
install -Dm0644 sysusers "$pkgdir"/usr/lib/sysusers.d/powercap-group.conf | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[Service] | |
SupplementaryGroups=powercap |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
g powercap - |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
ENV{SUBSYSTEM}=="powercap", ACTION=="add|change", OWNER="root", PROGRAM+="/usr/bin/find /sys$env{DEVPATH} -name energy_uj -exec chmod g+r -R {} + -exec chown root:powercap {} +" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment