Package a plugin

    For Grafana to be able to load a plugin, it first needs to be built. When you build a plugin from source, a directory is created that contains the production build, or plugin assets, for your plugin.

    When the Grafana server starts, it recursively looks in the plugin directory for any directory that contains a file and tries to load the plugin assets in the same directory.

    • Building the plugin
    • Archiving the plugin
    1. Build the plugin

    2. Create a ZIP archive of the directory.

    The best way to share your plugin with the world is to publish it on . By having your plugin published on Grafana.com, more users will be able to discover your plugin.