mdawar / rq-exporter

Prometheus metrics exporter for Python RQ (Redis Queue).
MIT License
65 stars 28 forks source link

Create binary files #9

Closed yasharne closed 3 years ago

yasharne commented 3 years ago

Hi I would like to use this exporter on a machine without an internet connection and I cannot use the docker image, is there any linux-amd64 binaries for this exporter?

mdawar commented 3 years ago

Hi,

Currently there are no binaries for this exporter, but you can install it on the offline machine using pip or docker by following these steps:

Using pip

  1. On a connected machine:
    $ # Create a directory to download the exporter and its dependencies
    $ # cd into the directory and download the exporter using pip
    $ # Then you can archive this directory and copy it to your offline machine and extract it there
    $ pip download rq-exporter -d .
  2. On the offline machine:
    $ # Install the exporter using pip from the directory that contains the downloaded files
    $ pip install rq-exporter --no-index --find-links /path/to/dir

Using Docker

  1. On a connected machine:

    $ # Download the image
    $ docker pull mdawar/rq-exporter
    $ # Save the image to a tar archive
    $ docker save mdawar/rq-exporter > rq-exporter.tar
    $ # Or
    $ docker save --output rq-exporter.tar mdawar/rq-exporter
  2. On the offline machine:

    $ # Copy the image archive and load it
    $ docker load < rq-exporter.tar.gz
    $ # Or
    $ docker load --input rq-exporter.tar.gz