Overview
The Stellar Account Prometheus Exporter retrieves account(s) balance and exposes it in prometheus format.
Configuration
Configuration file path must be provided using the --config option.
The config file is yaml formatted file:
networks:
- name: pubnet # Human readable name
horizon_url: https://horizon.example.com # Horizon URL
accounts:
- account_id: ABC123XYZ # Account ID
account_name: Account one # Human readable description
- account_id: DEF456ABC
account_name: Account two
- name: testnet
horizon_url: https://horizon-testnet.example.com
accounts:
- account_id: QWE789DEF
account_name: Testnet test account
By default the exporter listens on port 9618. This can be changes using --port switch or "PORT" environment variable.
Exported data
For each account the following metrics are exported:
- stellar_account_balance
- stellar_account_available_balance
- stellar_account_buying_liabilities
- stellar_account_selling_liabilities
- stellar_account_num_sponsored
- stellar_account_num_sponsoring
- stellar_account_scrape_success
Each metric has the following labels:
- network - network name from the configuration file
- account_id - account ID from the configuration file
- account_name - account name, as per configuration file
- asset_type - asset type
Installing from pypi
To download/test package in pypi you can use venv:
python3 -m venv venv
. venv/bin/activate
Install:
python3 -m pip install stellar_account_prometheus_exporter
Run:
./venv/bin/stellar-account-prometheus-exporter --config /path/to/config.yaml
Releasing new version
- ensure you bumped version number in setup.py. PyPi does not allow version reuse
- build new package:
python3 setup.py sdist bdist_wheel
- push to testpypi:
python3 -m twine upload --repository-url https://test.pypi.org/legacy/ dist/*
- test by installing the package (see above). If all good release:
python3 -m twine upload dist/*
Docker and K8s version
This app is now dockerized. The new Dockerfile has been validated and can be used like this:
docker build --pull --no-cache -t <your tag>
Metadata
Release files for stellar-account-prometheus-exporter 0.0.8
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 | |
|---|---|---|---|---|
| stellar-account-prometheus-exporter-0.0.8.tar.gz | 8.9 kB | Without provenance | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| stellar_account_prometheus_exporter-0.0.8-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 18.4 kB
Release files / stellar-account-prometheus-exporter-0.0.8.tar.gz
| Download URL | stellar-account-prometheus-exporter-0.0.8.tar.gz |
|---|---|
| Size | 8.9 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
fa1cc95320068b141ad906e582a31be9110582a77fbb31d2075314c2c36f195d
|
|
BLAKE2b-256 checksum How to use checksums |
4dc245e90b397c61c9dbb6af6bf81a18fd89d78dc03aafecafe719beccab028d
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.9.2
|
Release files / stellar_account_prometheus_exporter-0.0.8-py3-none-any.whl
| Download URL | stellar_account_prometheus_exporter-0.0.8-py3-none-any.whl |
|---|---|
| Size | 9.5 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
8a2450a095b9ccbb5801b3e8d7c7a336d3a1d37829f9fdad24692a13636bc349
|
|
BLAKE2b-256 checksum How to use checksums |
d9ebdfc45adbd72cf025942397b24d29427905c12d25c0117e1b3c550a893f92
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.9.2
|
Security for stellar-account-prometheus-exporter 0.0.8
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.