Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Refactor to query GeoIP in backend #19

Open
Gowee opened this issue Sep 24, 2021 · 0 comments
Open

Refactor to query GeoIP in backend #19

Gowee opened this issue Sep 24, 2021 · 0 comments
Labels
enhancement New feature or request

Comments

@Gowee
Copy link
Owner

Gowee commented Sep 24, 2021

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

@Gowee Gowee added the enhancement New feature or request label Sep 24, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant