Datasource plugin not showing up in data sources

I created a data source plugin and copied it over to /var/lib/grafana/plugins directory. Is there a way to install it as a data sources without doing it manually? Following is my Dockerfile

FROM grafana/grafana

ENV GF_AUTH_DISABLE_LOGIN_FORM "true"
ENV GF_AUTH_ANONYMOUS_ENABLED "true"
ENV GF_AUTH_ANONYMOUS_ORG_ROLE "Admin"

COPY dist /var/lib/grafana/plugins

COPY resources/provisioning /etc/grafana/provisioning

COPY resources/dashboard-config /var/lib/grafana/conf/dashboards

When you add new plugins, grafana need to restart then the plugin will show and can be use

1 Like