Skip to content

sudoblockio/icon-metrics-v1

Repository files navigation

ICON Metrics Service

loopchain GitHub Release codecov

Off chain indexer for the ICON Blockchain serving metrics for the icon-explorer. Service is broken up into API and worker components that are run as individual docker containers. Events are derived from various bespoke JSON RPC / REST calls against the nodes across the ecosystem and a prometheus DB and persisted in a postgres database.

Endpoints

TODO: Links and table

Deployment

Service can be run in the following ways:

  1. Independently from this repo with docker compose:
docker-compose -f docker-compose.db.yml -f docker-compose.yml up -d
# Or alternatively
make up
  1. With the whole stack from the main icon-explorer repo.

Run make help for more options.

Development

For local development, you will want to run the docker-compose.db.yml as you develop. To run the tests,

make test

License

Apache 2.0