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.
We need
akash-exporter
which would be listening the akash blockchain (RPC node) for the transactions such as:deployment-create
,bid-create
,lease-create
, ... - https://github.com/akash-network/node/blob/v0.20.0/x/market/types/v1beta2/event.go#L13-L25provider-created
,provider-updated
,provider-deleted
, for provider attributes - https://github.com/akash-network/node/blob/v0.20.0/x/provider/types/v1beta2/event.go#L8-L13audit-trusted-auditor-created
,audit-trusted-auditor-deleted
for audits - https://github.com/akash-network/node/blob/v0.20.0/x/audit/types/v1beta2/event.go#L9-L14FWIW (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=7NNbmuwf99sWe could probably take
chia-exporter
as an example (or rather moretendermint
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 getakash-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