Skip to content
This repository was archived by the owner on Jan 30, 2023. It is now read-only.

Conversation

@alexanderzobnin
Copy link
Contributor

This PR adds instructions how to debug backend plugin to backend plugin development tutorial.

Copy link
Contributor

@marcusolsson marcusolsson left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice! This will be a great addition to the tutorial! I'd like to make it something that is more step-by-step, where you already have a backend plugin at the start, and at the end be able to read the value of a variable, or similar.

go build -gcflags=all="-N -l" -o ./dist/my-datasource_linux_amd64 ./backend
```

Restart grafana-server or kill running plugin instance to restart plugin.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
Restart grafana-server or kill running plugin instance to restart plugin.
- Restart grafana-server to restart the plugin.
> Another way to restart the plugin is to terminate the plugin subprocess.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Killing plugin process forces grafana to restart plugin. So it's also a useful trick to restart plugin without restarting grafana-server. I also use bra to rebuild plugin on files changes, and killing process helps me to restrart plugin after rebuild.

Co-Authored-By: Marcus Olsson <accounts+github@marcus.se.net>
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants