https://github.com/application-research/delta-global-metrics-rest-api
Delta Metrics / Telemetry REST Endpoints
https://github.com/application-research/delta-global-metrics-rest-api
Last synced: 27 days ago
JSON representation
Delta Metrics / Telemetry REST Endpoints
- Host: GitHub
- URL: https://github.com/application-research/delta-global-metrics-rest-api
- Owner: application-research
- License: apache-2.0
- Created: 2023-03-14T13:45:17.000Z (about 3 years ago)
- Default Branch: main
- Last Pushed: 2023-07-05T18:03:02.000Z (almost 3 years ago)
- Last Synced: 2025-03-19T08:49:21.385Z (about 1 year ago)
- Language: Go
- Size: 148 KB
- Stars: 1
- Watchers: 8
- Forks: 0
- Open Issues: 3
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Delta Global Metrics Rest
Rest API for Delta Global Metrics
# How it works
- delta instances reports all data using https://github.com/application-research/delta-events-consumer
- the event consumer inserts record on delta metrics database.
- delta-metrics-rest-api (this project) interface all the tables and views of the delta metrics database.

## Set up the .env file
```
DB_NAME=deltadb_metrics
DB_HOST=
DB_USER=deltadb_metrics_user
DB_PASS=
DB_PORT=5432
```
## Build the binary
```
make dmr
```
## Run the binary
```
./dmr
```
## Check the live totals info here
```
https://global.delta.store/open/stats/totals/info
```
## Global Stats available
- total deals attempted
- total e2e deals attempted
- total import deals attempted
- total deals succeeded
- total e2e deals succeeded
- total import deals succeeded
- total deals failed
- total e2e deals failed
- total import deals failed
- total deals active
- total e2e deals active
- total import deals active
- total number of sps
- total number of delta nodes
## Storage stats available
- total storage consumed by deals attempted
- total storage consumed by e2e deals attempted
- total storage consumed by import deals attempted
- total storage consumed by deals succeeded
- total storage consumed by e2e deals succeeded
- total storage consumed by import deals succeeded
- total storage consumed by deals failed
- total storage consumed by e2e deals failed
- total storage consumed by import deals failed
- total storage consumed by deals active
- total storage consumed by e2e deals active
- total storage consumed by import deals active
- total storage consumed by all deals
- total storage consumed by all e2e deals
## SP
- list of SP
- list of SP location
- list of SP deals attempted
- list of SP deals succeeded
- list of SP deals failed
- list of SP deals active
- list of SP deals attempted by e2e
- list of SP deals succeeded by e2e
- list of SP deals failed by e2e
- list of SP deals active by e2e
- list of SP deals attempted by import
- list of SP deals succeeded by import
- list of SP deals failed by import
# Author
Protocol Labs Outercore Engineering.