How to debug a grafana datasource backend plugin?

Is there a way to attach process on a grafana backend plugin ?

I tried building the plugin with some args then attaching to a process with pid with dvl but no use… it just throws some errors!

I know the plugin is communicating with grafana through grpc… how can we achieve such thing ?

Well… after some struggle I managed…

All I did was installing this package

go get -t github.com/google/gops/

Then adding gcflags argument to the plugin build command.

go build -gcflags="all=-N -l" -o ./dist/gpx_plugin-datasource_windows_amd64.exe ./pkg

Subsequently with Goland attach to process and we good :slight_smile:

2 Likes

This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.