FastAPI server that exposes /metrics
endpoint to be scraped by Prometheus.
It collects connection, system, and rewards metrics. Everything that is available in Presearch API.
- https://fastapi.tiangolo.com
- https://github.com/prometheus/client_python
- https://prometheus.io
- https://grafana.com
Example scraping job
- job_name: presearch-exporter-1
scrape_interval: 1m
scrape_timeout: 45s
params:
token: [ "API_TOKEN" ]
static_configs:
- targets: [ 'presearch-exporter-deployment.io:8000' ]
labels: { pre_client: 'nourspace' }
This codebase is inspired by
- How to monitor your PRESEARCH nodes with prometheus and grafana ? Amazing guide by Christophe T. on how to implement Prometheus/Grafana monitoring for Presearch.
- A prometheus exporter for presearch.io nodes written in go Similar service by Zibby
- Cleanup and add more docs on complete installation
- Improve Docker
- Add more dashboards/panels