faktory-prometheus-exporter
A Faktory Exporter written in Python for Prometheus.
In a nutshell
The faktory_exporter is a simple server that scrapes a configured Faktory instance for stats by issuing the "INFO" command and exports them via string message for Prometheus consumption.
Usage
Arguments
The URL used to scrape info from faktory is by default tcp://:@localhost:7419, but
can be overwritten by using the --faktory_url arg or by specifying a FAKTORY_URL
environment variable.
The app will by default run in interactive mode, printing the metrics and exiting. You
can activate the daemon mode by adding --daemonize or by specifying a
DAEMONIZE_EXPORTER environment variable. The activated daemon will by default run on
port 7423 but this can be changed by specifying --port= or by defining the PORT
environment variable.
Install with pip
Fastest way is simply running (preferably in a python env):
pip install faktory-prometheus-exporter
faktory-prometheus-exporter [--faktory_url='tcp://:[password]@localhost:7419'] [--help]
Develop using uv or pip-compile
The requirements format are the ones defined by pip-compile, from
pip-tools.
You may also equally use uv pip compile from uv.
uv pip compile requirements.in -o requirements.txt
uv pip compile requirements-dev.in -o requirements-dev.txt
Then you can either install locally to use the CLI or to run the python function:
uv pip install -e .
faktory-prometheus-exporter [--faktory_url='tcp://:[password]@localhost:7419']
python faktory_prometheus_exporter.py
Build and use as docker container
You may use the Dockerfile and run something like the following. Make sure that the
exporter is in the same network than faktory, i.e. with docker-compose.
docker build -t faktory-prometheus-exporter:latest .
docker run -d [--rm] faktory-prometheus-exporter:latest [--faktory_url='tcp://:[password]@localhost:7419']
Inspiration / prior work
Inspired by this Faktory Exporter written in go, but only partially maintained and not working out of the box when we needed it, so we built our own one.
Metadata
Release files for faktory-prometheus-exporter 0.2.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| faktory_prometheus_exporter-0.2.0.tar.gz | 7.3 kB | Without provenance | Details for faktory_prometheus_exporter-0.2.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| faktory_prometheus_exporter-0.2.0-py3-none-any.whl | Python 3 | none | any | Details for faktory_prometheus_exporter-0.2.0-py3-none-any.whl |
Total release size: 13.4 kB
Release files / faktory_prometheus_exporter-0.2.0.tar.gz
| Download URL | faktory_prometheus_exporter-0.2.0.tar.gz |
|---|---|
| Size | 7.3 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
eae5aac0a42dc63f8d8a8b73ae7199d574bdd2c1172697f29a05e2121a550e2b
|
|
BLAKE2b-256 checksum How to use checksums |
3433d8616544c858bbb40cbf1f557da5a1de49a9327d7a187de74fe9669566de
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/5.1.0 CPython/3.12.4
|
Release files / faktory_prometheus_exporter-0.2.0-py3-none-any.whl
| Download URL | faktory_prometheus_exporter-0.2.0-py3-none-any.whl |
|---|---|
| Size | 6.1 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
3e71111d9d5ac0abc39c4bc3d8585389632b28e6bb2da9c41654616f1bb83990
|
|
BLAKE2b-256 checksum How to use checksums |
2fb999fc75e2ed8e0bd220629827262c4665d81eaaaab2f0f0bb71860e361b4f
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/5.1.0 CPython/3.12.4
|
Security for faktory-prometheus-exporter 0.2.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.