filecoin-project / network-info

Information about active Filecoin networks and a place to report network issues
https://network.filecoin.io
5 stars 5 forks source link

Lack of data of chain.power #62

Closed jancco closed 3 years ago

jancco commented 3 years ago

[Description]: When I use the follow link to query the data of Chain power: https://stats.filecoin.io/api/datasources/proxy/1/query?db=chainstats-ntwk-mainnet&q=SELECT%20max(%22value%22)%20FROM%20%22chain.power%22%20WHERE%20time%20%3E%3D%20now()%20-%20100d%20GROUP%20BY%20time(1d)&epoch=s It misses the data of most of the days (refer to the attach picture).

[Suggestion]: Please help to fix it. Thanks!

Chain-Power-By-Day

jancco commented 3 years ago

@travisperson , @timelytree , @orvn , @hsanjuan , Could you help fix this issue? Thanks!

travisperson commented 3 years ago

The page at https://stats.filecoin.io isn't really a public api to be queried for this kind of information. Its goal is to try and provide a some information about the network for the last ~60 tipsets (30 minutes), we also only keep data for 30 days regardless which is why all the data falls off after the 8th of November.

If you need to query this information you run the stats tool yourself and keep the data around longer / backfill your own data.

https://github.com/filecoin-project/lotus/tree/master/cmd/lotus-stats