observer

module
v2.0.4+incompatible Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 16, 2019 License: Apache-2.0

README

Observer

Service that replicates smart-contract records data to DB and constructs some of new structures: user accounts, token transfers, deposit migrations, migration addresses.

Networking

Opens ports: ${api.addr}

Depends on

Insolar HME node: ${replicator.addr}

PostgreSQL DB 11.4: ${db.url}

Example configuration
api:
  addr: :0
replicator:
  addr: 127.0.0.1:5678
  maxtransportmsg: 1073741824
  attempts: 2147483647
  attemptinterval: 10s
  batchsize: 1000
  transactionretrydelay: 3s
db:
  url: postgres://postgres@localhost/postgres?sslmode=disable
  attempts: 2147483647
  attemptinterval: 3s
  createtables: false
Run and build

To run observer node you should provide config file: observer.yaml (like described above) at working directory.

You can generate it from configuration/configuration.go like this

make env

To build and run:

make all && ./bin/observer

Metrics

Prometheus url: ${api.addr}/metrics

Healthcheck url: ${api.addr}/healthcheck

Alerts

Currently not provided.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL