Skip to content

phonglh79/stellar-horizon-exporter

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

stellar-horizon-exporter

A prometheus exporter for https://horizon.stellar.org/. Provides Prometheus metrics from the all operation API endpoint of Stellar Horizon, such as Number of operations, Number of payments, Sum of payments, Number of account creations, etc. REST API Documentation found here.

When running this exporter with both Prometheus and Grafana, you can create dashboards like:

stellar-horizon-dashboard

Developing

  • Build the image:
docker build -t stellar-horizon-exporter .
  • Run it while listening on localhost:9100:
docker run --rm -p 127.0.0.1:9101:9101 stellar-horizon-exporter
  • Run it interactively:
docker run --rm -it --entrypoint=/bin/bash -p 127.0.0.1:9101:9101 -v ${PWD}:/opt/stellar-horizon-exporter stellar-horizon-exporter
  • Then to launch:
python stellar-horizon-exporter.py

Testing the Prometheus Grafana Stack

  • In the prometheus-compose directory, run:
docker-compose up

Thanks and Links

About

Stellar Horizon Prometheus Exporter

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 82.0%
  • Shell 11.5%
  • Dockerfile 6.5%