Skip to content
This repository has been archived by the owner on Jul 11, 2023. It is now read-only.

Complete example #3

Open
nicolaerosia opened this issue Apr 22, 2021 · 2 comments
Open

Complete example #3

nicolaerosia opened this issue Apr 22, 2021 · 2 comments

Comments

@nicolaerosia
Copy link

@jhunthrop thank you for starting this repo as I'm interested in making a Python Grafana datasource.

Instead of pushing all the Python dependencies in the Grafana image, I was thinking of having a bash file that would respect the Plugin protocol, would be started by Grafana and would communicate back the gRPC address where Grafana should connect to.
Then, I would have the actual Python Datasource on a separate container which would talk over gRPC.

If you have any more resources except what is in this repo, I would be happy to take a look

@jkmnt
Copy link

jkmnt commented Apr 23, 2021

nicolaerosia, please see my attempt: https://github.com/jkmnt/grafana_python_backend_plugin

@nicolaerosia
Copy link
Author

@jkmnt thank you! My approach was a bit different, I created a shell script which just returns the address, but the address is not localhost.
I imagine that bringing Python inside grafana container is not really nice, so I was thinking of having a separate container for the datasource.
I'll try to clean up my example and push it to github as well.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants