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
- Host: GitHub
- URL: https://github.com/stellar/stellar-core-prometheus-exporter
- Owner: stellar
- License: apache-2.0
- Created: 2019-07-21T21:42:23.000Z (almost 7 years ago)
- Default Branch: master
- Last Pushed: 2023-11-23T12:16:18.000Z (over 2 years ago)
- Last Synced: 2024-04-24T01:42:12.634Z (about 2 years ago)
- Language: Python
- Homepage:
- Size: 91.8 KB
- Stars: 8
- Watchers: 8
- Forks: 16
- Open Issues: 1
-
Metadata Files:
- Readme: README.docker.md
- License: LICENSE
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
```