graphprotocol / block-oracle

MIT License
5 stars 11 forks source link

Basic Prometheus monitoring #189

Closed tilacog closed 1 year ago

tilacog commented 1 year ago

This PR lays out the foundation for Prometheus instrumentation:

  1. a &'static metrics registry (done mainly by @neysofu in previous commits).
  2. a hyper HTTP server that serves Prometheus gathered metrics, running concurrent to Oracle's main loop.
  3. a POC metric + instrumentation for tracking the current epoch, both at the Epoch Manager contract and the Epoch Subgraph.
  4. a docker-compose entry and configuration for a prometheus service.