An open API service indexing awesome lists of open source software.

https://github.com/stellar/stellar-core-prometheus-exporter

Stellar Core Prometheus Exporter
https://github.com/stellar/stellar-core-prometheus-exporter

Last synced: about 1 year ago
JSON representation

Stellar Core Prometheus Exporter

Awesome Lists containing this project

README

          

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

Source code and documentation are available in [github](https://github.com/stellar/stellar-core-prometheus-exporter)

# Configuration

The image accepts 2 optional environment variables:
* **STELLAR_CORE_ADDRESS** - URL to stellar-core http endpoint. Defaults to `http://127.0.0.1:11626`
* **PORT** - HTTP port to listen on. Defaults to `9473`

# Example config

To deploy the exporter and point it at a local stellar-core quickstart deployment the following docker compose config can be used:

```
version: "2"
services:
stellar-core:
image: "stellar/quickstart"
command:
- "--testnet"
ports:
- "8000:8000"
links:
- prometheus-exporter
prometheus-exporter:
image: ex:latest
environment:
- STELLAR_CORE_ADDRESS=http://stellar-core:11626
ports:
- "9473:9473"
```

To launch the stack save this config in docker-compose.yml and run:
```
docker-compose up
```