Gowee / traceroute-map-panel

📍🗺️ Visualize traceroute paths on a map in a Grafana panel
Apache License 2.0
37 stars 2 forks source link

Refactor to query GeoIP in backend #19

Open Gowee opened 2 years ago

Gowee commented 2 years ago

Querying GeoIP in browsers is a compromise due to the limitation of the previous Grafana plugins system (or its doc?). It complicates caching resolution results, slows down the load time, and exposes security risks when sharing panels.

Now it is possible to query GeoIP in a separated backend plugin.

The resources capability allows a backend plugin to handle custom HTTP requests sent to the Grafana HTTP API and respond with custom HTTP responses.

Ref: https://grafana.com/docs/grafana/latest/developers/plugins/backend/#resources https://github.com/grafana/grafana-plugin-sdk-go/blob/main/proto/backend.proto