Skip to main content

Export stellar core metrics in prometheus format

Project description


The Stellar Core Prometheus Exporter reads metrics exposed by the stellar-core daemon and exposes them in prometheus format.


Optional config can be provided using CLI arguments or environment variables.

Supported configuration options:

  • --stellar-core-address - address of monitored stellar-core. Defaults to Can also be set using STELLAR_CORE_ADDRESS environment variable
  • --port - listening port. Defaults to 9473. Can also be set using PORT environment variable

Grafana dashboard

Grafana can be used to visualise data. Example dashboards are shipped with this code. Latest versions is also available on

Please refer to the documentation for details.

Docker image

Included Dockerfile uses apt package to deploy the exporter. Example build command:

docker build -t stellar-core-prometheus-exporter:latest .

Installing from pypi

To download/test package in pypi you can use venv:

python3 -m venv venv
. venv/bin/activate


python3 -m pip install stellar_core_prometheus_exporter



Releasing new version

  • ensure you bumped version number in PyPi does not allow version reuse
  • build new package:
python3 sdist bdist_wheel
  • push to testpypi:
python3 -m twine upload --repository-url dist/*
  • test by installing the package (see above). If all good release:
python3 -m twine upload dist/*

Project details

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for stellar-core-prometheus-exporter, version 0.9.6
Filename, size File type Python version Upload date Hashes
Filename, size stellar_core_prometheus_exporter-0.9.6-py3-none-any.whl (11.3 kB) File type Wheel Python version py3 Upload date Hashes View
Filename, size stellar-core-prometheus-exporter-0.9.6.tar.gz (32.2 kB) File type Source Python version None Upload date Hashes View

Supported by

Pingdom Pingdom Monitoring Google Google Object Storage and Download Analytics Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page