Grafana Version: 11.5.2 (commit: NA, branch: main)
Issue Description:
I am unable to successfully install or use the PostgreSQL Datasource plugin (GitHub - shirish87/grafana-postgresql-datasource) in Grafana. The following errors are observed:
-
Plugin Not Found (404 Errors):
- Grafana logs repeatedly show
404errors when attempting to load the plugin:logger=context t=2025-04-22T09:46:48.659190659+03:00 level=info msg="Request Completed" path=/core:plugin/grafana-postgresql-datasource.js status=404 - The error
Could not find plugin definition for data sourceappears when configuring the datasource.
- Grafana logs repeatedly show
-
Missing Build Script During Installation:
- When attempting to build the plugin from source (cloned from GitHub), the command
npm run buildfails with:npm error Missing script: "build" - The
package.jsonfile in the plugin repository does not include abuildscript.
- When attempting to build the plugin from source (cloned from GitHub), the command
-
Network Connectivity Issues:
- Grafana fails to download plugin manifests or dependencies (e.g.,
grafana-lokiexplore-app):error="Get \"https://grafana.com/api/plugins/grafana-lokiexplore-app/versions\": dial tcp: lookup grafana.com: no such host" - This suggests DNS resolution or network connectivity issues.
- Grafana fails to download plugin manifests or dependencies (e.g.,
Steps Taken:
- Installed the plugin via
grafana-cli plugins install grafana-postgresql-datasource. - Attempted manual installation from GitHub (cloned repository, ran
npm install, butnpm run buildfailed). - Verified plugin directory permissions (
/var/lib/grafana/plugins). - Added
allow_loading_unsigned_plugins = grafana-postgresql-datasourcetografana.ini.
Questions for Support:
- Is the PostgreSQL plugin compatible with Grafana v11.5.2?
- Are there specific steps to build the plugin if the
buildscript is missing inpackage.json?

