Microservice for providing information about the next parachain renew in Prometheus format
- Install UV
- Make app.py executable:
chmod +x ./app.py
- Run script:
Where
./app.py \ --host 127.0.0.1 \ --port 43987 \ --endpoint wss://kusama-coretime-rpc.polkadot.io/ \ --task 2095
--task
is your parachain id. If you want to debug service, set env varDEBUG
toTrue
- Go to 127.0.0.1:43987 and got information of next renew for your Prometheus
renew_at
: timestamp (in seconds) when the next interlude period will begin, during which renew can be maderenew_until
: timestamp (in seconds) when the interlude period will end, and renew can no longer be madeprice
: cost of the renew; to get the price in KSM, you need to divide this by 10^18core
: number of the current core on which the parachain is running, and it will change after the renew
Each metric has a label task
, which is the parachain ID to which the values pertain; this is done for future purposes in case multiple parachains need to be monitored
Example:
renew_at{task="2095"} 1740798352
renew_until{task="2095"} 1741100752
price{task="2095"} 791756500
core{task="2095"} 27
The project is licensed under the MIT License