1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47
|
# Installation (GNU/Linux)
Depending on your kernel version, you could need to modprobe the module intel_rapl or intel_rapl_common before running scaphandre:
modprobe intel_rapl_common # or intel_rapl for kernels < 5
## Docker
To quickly run scaphandre in your terminal you may use [docker](https://www.docker.com/):
docker run -v /sys/class/powercap:/sys/class/powercap -v /proc:/proc -ti hubblo/scaphandre stdout -t 15
## Debian/Ubuntu
Since Debian Sid, Scaphandre is available as an official package, try:
sudo apt install scaphandre
If not (yet) in your official packages repositories, on Debian or Ubuntu, you can directly use the available `.deb` [package for Debian Bullseye](https://github.com/hubblo-org/scaphandre/releases/download/v1.0.0/scaphandre_v1.0.0-deb11_amd64.deb) or the [package for Debian Bookworm](https://github.com/hubblo-org/scaphandre/releases/download/v1.0.0/scaphandre_v1.0.0-deb12_amd64.deb).
# For Debian Bookworm
VERSION="1.0.1" ARCH="amd64" DIST="deb12" && \
wget https://github.com/hubblo-org/scaphandre/releases/download/v${VERSION}/scaphandre_v${VERSION}-${DIST}_${ARCH}.deb && \
dpkg -i scaphandre_v${VERSION}\-${DIST}\_${ARCH}.deb && \
rm scaphandre_v${VERSION}\-${DIST}\_${ARCH}.deb
## Run the binary
Once you downloaded or built a binary, you'd run:
scaphandre stdout -t 15
Here are some other ways to install scaphandre depending on your context:
- [quickly try the project with docker-compose/docker stack](docker-compose.md)
- [run scaphandre on kubernetes](kubernetes.md)
- [run scaphandre on RHEL, with prometheus-push mode](../how-to_guides/install-prometheuspush-only-rhel.md)
Kudos to contributors who work on system packages, please have a try and/or contribute to:
- [Debian package](https://github.com/barnumbirr/scaphandre-debian), maintainer: @barnumbirr
- [NixOS package](https://github.com/mmai/scaphandre-flake), maintainer: @mmai
Other tutorials should come, as:
- install scaphandre as a proper systemd service
- scaphandre in your favorite GNU/Linux distribution (need help from packaging gurus !)
- scaphandre on MacOSX
- and more...
|