garf exporter - Prometheus exporter for garf.
garf-exporter allows you to transform responses from APIs into metrics consumable for by Prometheus.
Simply define a config file with garf queries and run a single garf-exporter command to start exporting in no time!
Installation
pip install garf-exporter
Usage
garf-exporter expects a configuration file that contains garf-queries mapped to collector names.
Config file may contains one or several queries.
- title: test
query: |
SELECT
dimension,
metric,
metric_clicks,
campaign
FROM resource
To treat any field in SELECT statement as metric prefix with with
metric_.
You need to explicitly specify source of API and path to config file to start exporting data.
garf-exporter --source API_SOURCE -c config.yaml
Once garf-exporter is running you can see exposed metrics at localhost:8000/metrics.
Customization
--config- path togarf_exporter.yaml, can be taken from local or remote file.--expose-type- type of exposition (httporpushgateway,httpis used by default)--host- address of your http server (localhostby default)--port- port of your http server (8000by default)--delay-minutes- delay in minutes between scrapings (15by default)
Documentation
Explore full documentation on using garf-exporter
Metadata
Release files for garf-exporter 1.0.1
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 |
|---|---|---|---|---|
| garf_exporter-1.0.1.tar.gz | 11.4 kB | Without provenance | Details for garf_exporter-1.0.1.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| garf_exporter-1.0.1-py3-none-any.whl | Python 3 | none | any | Details for garf_exporter-1.0.1-py3-none-any.whl |
Total release size: 30.2 kB
Release files / garf_exporter-1.0.1.tar.gz
| Download URL | garf_exporter-1.0.1.tar.gz |
|---|---|
| Size | 11.4 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
83a08713ee3cd9412686bd59a42f1d29f8015bf53636172a358e31b029974bcd
|
|
BLAKE2b-256 checksum How to use checksums |
6497edddc11e99632fe8bf562bdb0a1c384aa803cddec5b7f5bc24bae55c6d9f
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
uv/0.13.6 {"installer":{"name":"uv","version":"0.13.6","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"26.04","id":"resolute","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}
|
Release files / garf_exporter-1.0.1-py3-none-any.whl
| Download URL | garf_exporter-1.0.1-py3-none-any.whl |
|---|---|
| Size | 18.8 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
9805c9c62140c577f1afa10f6e63a5e69c6dd40f31a48aec425ab80f888b53b1
|
|
BLAKE2b-256 checksum How to use checksums |
c8486a083a5730aacefddec06abaac43f990e3d152fd19adaafb415df921a4b8
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
uv/0.13.6 {"installer":{"name":"uv","version":"0.13.6","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"26.04","id":"resolute","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}
|
Security for garf-exporter 1.0.1
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.