akash-network / support

Akash Support and Issue Tracking
5 stars 4 forks source link

provider: prometheus exporter - monitor deployments, bids, leases, attributes, ... #11

Open andy108369 opened 1 year ago

andy108369 commented 1 year ago

We need akash-exporter which would be listening the akash blockchain (RPC node) for the transactions such as:

FWIW (for inspiration), Chia just released a video of their chia-exporter (it listens to the RPC node, and prometheus is collecting that data), then they connect grafana to prometheus to display cool dashboards https://www.youtube.com/watch?v=7NNbmuwf99s

We could probably take chia-exporter as an example (or rather more tendermint wss/rest-based one) and see if we can modify it to support the akash node events based on the code paths above. If we get akash-exporter, then we need to run akash RPC node and akash-exporter, which prometheus TSDB will be reading from, and then make some dashboards in grafana.

REST: cendermint

I've tried a rest-based prometheus exporter https://github.com/jim380/Cendermint - it is working.

The modules are available here https://github.com/jim380/Cendermint/tree/master/rest

I think it can be extended with the market, provider, node modules and the exporter https://github.com/jim380/Cendermint/tree/master/exporter accordingly.

WSS: nodejs

Not sure if that helps, but wss:// (websocket) can also be leveraged:

https://twitter.com/atmon3r/status/1553099773883867138 https://gist.github.com/atmoner/09ce804a7791b8f03a9d9bc4584e47eb