akash-network / community

Starting point for joining and contributing to building Akash Network
MIT License
52 stars 28 forks source link

Prometheus Exporter App Written in Go. #701

Open brewsterdrinkwater opened 1 week ago

brewsterdrinkwater commented 1 week ago

Goal: app written in Golang that connects to provider’s inventory GRPC endpoint and exports it as prometheus metrics.

protobuf description for GRPC is here: https://github.com/akash-network/akash-api/blob/d05c262a17178a33e3e5383dcceea384d6260a17/proto/provider/akash/inventory/v1/service.proto#L31

cloud-j-luna commented 1 week ago

PoC of the "Inventory Exporter" updating gauge values every t, where t is an arbitrary time value:

Image

This specific test was ran against the Europlots provider which I validated in the Quasarch's provider page as being consistent:

Image

Reminder the metrics values are in Bytes and in the screenshot in Gibibytes (1024^3)