space-meridian / roadmap

High-level roadmap for Filecoin Station
https://starmap.site/roadmap/github.com/space-meridian/roadmap/issues/1
0 stars 0 forks source link

Log IPv4/ location data and serve it in the public dashboard while preserving privacy #112

Closed PatrickNercessian closed 2 months ago

PatrickNercessian commented 4 months ago

Sub-issue to https://github.com/filecoin-station/roadmap/issues/97

PatrickNercessian commented 4 months ago

We previously discussed that CloudFlare has optional location headers that we can include in requests to spark-api.

https://developers.cloudflare.com/rules/transform/managed-transforms/reference/#add-visitor-location-headers

Thus, in spark-api, we can store this data in InfluxDB, to be consumed by spark-observer. This is similar to the approach discussed in #98.

The end goal is to have a public visualization of geolocation of nodes (while preserving privacy), and a dashboard of the total number of IPv4 subnets over time.

PatrickNercessian commented 4 months ago

There are multiple map visualization tools out there. Grafana has a mapping visualization function . Another common one seems to be Leaflet.js. There are also multiple python visualization tools, and some proprietary services we can use as well, such as Tableau or Google.

In any case, most of these do not seem to have distinct functionality to use ISO-2 region codes, such as the ones given by cloudflare's cr-region-code header. Thus, it seems helpful to store all relevant information to avoid cases where we change our mind on the visualization tool. See https://github.com/filecoin-station/spark-api/pull/339

PatrickNercessian commented 3 months ago

Any thoughts on the above visualization tools? @bajtos @juliangruber @patrickwoodhead

juliangruber commented 3 months ago

While we use Grafana, let's just use what Grafana offers?

bajtos commented 2 months ago

Closing as done.

https://grafana.filstation.app/public-dashboards/2751d44f96914bb3a030b1de13224d19?orgId=1

Screenshot 2024-07-23 at 18 31 10