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

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

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.

![image](https://github.com/application-research/delta-metrics-rest-api/assets/4479171/64dd71f4-55e3-4c08-89e5-74d396d32e0d)

## 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.