You need a rooted device and the Termux application (available on the Google Play Store). Install Python for Windows (Python 2.7.9+ and 3.4+ ship with pip) and then run the following command: $ pip install glances Android Homebrew $ brew install glances MacPorts $ sudo port install glances Windows MacOS users can install Glances using Homebrew or MacPorts. If you do not want to use the glancesautoinstall script, follow this procedure. To install Glances from ports: # cd /usr/ports/sysutils/py-glances/ To install the binary package: # pkg install p圓8-glances Be aware that when you use this method the operating system package for Glances may not be the latest version. Glances is available on many Linux distributions, so you should be able to install it using your favorite package manager. Run the container in Web server mode (notice the GLANCES_OPT environment variable setting parameters for the glances startup command): docker run -d -restart="always" -p 61208-61209:61208-61209 -e GLANCES_OPT="-w" -v /var/run/docker.sock:/var/run/docker.sock:ro -pid host nicolargo/glances:latest-full GNU/Linux Where `pwd`/nf is a local directory containing your nf file. Run last version of Glances container in console mode: docker run -rm -v /var/run/docker.sock:/var/run/docker.sock:ro -pid host -network host -it nicolargo/glances:latest-fullĪdditionally, if you want to use your own nf file, you can create your own Dockerfile: FROM nicolargo/glances:latestĬMD python -m glances -C /etc/nf $GLANCES_OPTĪlternatively, you can specify something along the same lines with docker run options: docker run -v `pwd`/nf:/etc/nf -v /var/run/docker.sock:/var/run/docker.sock:ro -pid host -it nicolargo/glances:latest-full You can also specify a version by replacing latest by 3.2.6.3 (for example). nicolargo/glances:alpine-latest-full for a full Alpine Glances image version with all dependencies.nicolargo/glances:latest-full for a full Debian Glances image version with all dependencies.nicolargo/glances:alpine-latest for a basic Alpine Glances image version with minimal dependencies.nicolargo/glances:latest for a basic Debian Glances image version with minimal dependencies.scandir (for the Folders plugin) [Only for Python Īvailable versions on the Docker Hub repository:.requests (for the Ports, Cloud plugins and RESTful export module).pySMART.smartx (for HDD Smart support).py-cpuinfo (for the Quicklook CPU info module).prometheus_client (for the Prometheus export module).potsdb (for the OpenTSDB export module).pika (for the RabbitMQ/ActiveMQ export module).kafka-python (for the Kafka export module).influxdb-client (for the InfluxDB version 2 export module).influxdb (for the InfluxDB version 1 export module).hddtemp (for HDD temperature monitoring support).graphitesender (For the Graphite export module).
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |