Install the Grafana Polystat Panel Plugin
Install and allow-list the Polystat panel plugin where Grafana runs in Docker under Nomad.
This guide explains how to install and enable the Grafana Polystat panel plugin in a HEAL deployment, where Grafana runs in a Docker container managed by Nomad (job name grafana). You will copy and extract the approved plugin package on the Grafana host, set the required ownership, allow the unsigned plugin in the Grafana configuration, restart the Grafana job, and verify that the plugin loads in the logs and the Grafana UI.
The same procedure applies to any approved Grafana plugin that HEAL supplies as a compressed archive. Replace the Polystat package name and plugin ID with those of the plugin you are installing.
Important: Perform these steps only during an approved maintenance window. Restarting Grafana causes a brief interruption to dashboards. Keep the configuration template and plugin-directory backups until validation is complete.
Before you begin#
Make sure the following are in place before you start:
- An approved maintenance window for the Grafana restart.
- Shell access to the HEAL Grafana host, with permission to copy files, change ownership, edit the Grafana template, and manage the Grafana Nomad job.
- Docker and Nomad CLI access on the host.
- Grafana administrator access for the UI validation.
- The approved plugin archive from HEAL Product Support, together with its integrity details.
- The
grafana.nomadjob file and the directory from which it is deployed (in a standard HEAL deployment this is/opt/Heal/nomadFile).
Compatibility#
HEAL currently ships Grafana 11 (Grafana 11.3.1 at the time of writing). Always confirm the running Grafana version before selecting the plugin package, and use the plugin build that HEAL Product Support has approved for that Grafana version. Do not use a package built for a different Grafana major version without Product Support approval, because a major Grafana upgrade tightens plugin-signature enforcement and disables legacy AngularJS panels by default. The version shown in the example package file name is the plugin build supplied by HEAL Product Support — it is not the Grafana version, so always confirm you have the build approved for your Grafana release.
Files and paths#
| Item | Default HEAL path or value |
|---|---|
| Plugin archive (example) | grafana-polystat-panel_grafana_9.5.0.tar.gz |
| Plugins directory (host) | /opt/Heal/Appsone_Service/grafana/plugins |
| Plugins directory (inside container) | /var/lib/grafana/plugins |
| Config template (host) | /opt/Heal/Appsone_Service/conf-template/grafana/grafana.ini.tpl |
| Effective config (inside container) | /etc/grafana/grafana.ini |
| Extracted plugin ID and directory | grafana-polystat-panel |
| Nomad job | grafana |
Path note: If your HEAL installation root differs from /opt/Heal, substitute the correct installation path in every command below.
Security: Grafana does not verify the origin or contents of an unsigned plugin. Enable grafana-polystat-panel only when the package comes from an approved HEAL source and has passed the required security checks.
Installation procedure#
1. Identify the running Grafana container and version. List the running Grafana container, record its ID, and confirm the deployed image before selecting the plugin package.
docker ps --filter "name=grafana" --format "{{.ID}}\t{{.Image}}\t{{.Status}}"
docker inspect --format='{{.Config.Image}}' <grafana-container-id>
Replace <grafana-container-id> with the container ID returned by the first command. The image should report Grafana 11.3.1 (your registry prefix may vary).
2. Copy the plugin package to the host. Copy the approved package to the Grafana plugins directory on the host, then verify the copied file and its integrity.
cp <package-source-path>/grafana-polystat-panel_grafana_9.5.0.tar.gz /opt/Heal/Appsone_Service/grafana/plugins/
cd /opt/Heal/Appsone_Service/grafana/plugins
ls -lh grafana-polystat-panel_grafana_9.5.0.tar.gz
sha256sum grafana-polystat-panel_grafana_9.5.0.tar.gz
Compare the checksum with the value supplied by HEAL Product Support. Because the plugin is unsigned, do not extract or continue if the checksum does not match.
3. Back up the configuration and check for an existing plugin. Create a backup of the Grafana template before making any change, and confirm the plugin directory does not already exist.
cp /opt/Heal/Appsone_Service/conf-template/grafana/grafana.ini.tpl \
/opt/Heal/Appsone_Service/conf-template/grafana/grafana.ini.tpl.bak
cd /opt/Heal/Appsone_Service/grafana/plugins
test -d grafana-polystat-panel && echo "Existing plugin directory found"
Existing installation: If the command reports an existing directory, record its version and move it to an approved backup location before continuing. Do not extract the new archive over an existing plugin directory.
4. Extract the plugin and set ownership. First list the archive contents to confirm the top-level directory name, then extract it, confirm the directory was created, and assign it to the HEAL non-root user (healuser).
cd /opt/Heal/Appsone_Service/grafana/plugins
tar -tf grafana-polystat-panel_grafana_9.5.0.tar.gz | head
tar -xvf grafana-polystat-panel_grafana_9.5.0.tar.gz
ls -ld grafana-polystat-panel
chown -R healuser:healuser grafana-polystat-panel
ls -ld grafana-polystat-panel
The archive normally extracts to a directory named grafana-polystat-panel. If the top-level name differs, use that name in the chown and in the later steps. The final output must show the plugin directory owned by healuser:healuser.
5. Allow the plugin in the Grafana template. Because the plugin is unsigned, its ID must be allow-listed in the [plugins] section of the configuration. Grafana renders /etc/grafana/grafana.ini from the template at container start, so edit the template, not the rendered file.
vi /opt/Heal/Appsone_Service/conf-template/grafana/grafana.ini.tpl
Locate the [plugins] section (it also contains other keys, such as enable_alpha). In a standard HEAL deployment the allow_loading_unsigned_plugins key already allow-lists the HEAL data source plugins:
[plugins]
allow_loading_unsigned_plugins = simpod-json-datasource,heal-application-dashboard-datasource
Add grafana-polystat-panel to the same comma-separated list:
[plugins]
allow_loading_unsigned_plugins = simpod-json-datasource,heal-application-dashboard-datasource,grafana-polystat-panel
Preserve existing values: Append the plugin ID to the existing list — do not remove the other plugin IDs and do not add a second allow_loading_unsigned_plugins key. If the key does not yet exist, add it once under [plugins].
6. Verify the plugin inside the Grafana container. Confirm that the host plugins directory is visible at /var/lib/grafana/plugins inside the running container. Use a single non-interactive command, because the Grafana image may not include bash:
docker exec <grafana-container-id> ls -ld /var/lib/grafana/plugins/grafana-polystat-panel
The command must list the grafana-polystat-panel directory. If you prefer an interactive shell, invoke sh rather than bash.
7. Restart the Grafana Nomad job. Go to the directory that holds grafana.nomad, validate the file, then stop and re-run the job so the template re-renders and the plugin is loaded.
cd <directory-containing-grafana.nomad>
nomad job validate grafana.nomad
nomad job stop -purge grafana
nomad job run grafana.nomad
nomad job status grafana
Nomad syntax: The option follows the subcommand — use nomad job stop -purge grafana. The -purge option removes the stopped job from Nomad, so use it only when your approved deployment process requires it; otherwise a plain nomad job stop grafana followed by nomad job run grafana.nomad is sufficient.
8. Check the Grafana logs. Take the new allocation ID from nomad job status grafana, then review the allocation logs for plugin-loading errors.
nomad alloc logs <allocation-id> | grep -iE 'plugin|polystat|error'
If required, check the container logs directly:
docker ps --filter "name=grafana" --format "{{.ID}}\t{{.Image}}\t{{.Status}}"
docker logs <new-grafana-container-id> 2>&1 | grep -iE 'plugin|polystat|error'
An unsigned-plugin warning is expected once the plugin is explicitly allow-listed. Continue only if there are no load, signature, permission, or compatibility errors.
9. Verify the plugin in the Grafana UI. Complete both the catalog and the visualization checks.
i. Log in to the Grafana web UI as an administrator.
ii. Go to Administration → Plugins and data → Plugins, search for Polystat, and confirm that the Polystat panel plugin is shown as installed.
iii. Open a test dashboard, select Add → Visualization, and confirm that Polystat is available in the visualization list.
iv. Open an existing dashboard that uses Polystat and confirm that the panel renders without an error.
After all checks pass, you may move the extracted archive out of the plugins directory to keep the runtime path clean (retain it in an approved backup location):
mv /opt/Heal/Appsone_Service/grafana/plugins/grafana-polystat-panel_grafana_9.5.0.tar.gz <backup-location>/
Post-installation validation#
Complete the following checks before you close the change or support ticket.
| Check | Expected result |
|---|---|
| Plugin package | Approved package copied to the correct host directory |
| Ownership | grafana-polystat-panel is owned by healuser:healuser |
| Container mount | Plugin directory is visible under /var/lib/grafana/plugins |
| Configuration | Plugin ID is present once under allow_loading_unsigned_plugins |
| Nomad job | Grafana job is running and the allocation is healthy |
| Logs | No plugin load, permission, or compatibility error is present |
| Plugin catalog | Polystat is shown as installed in Grafana |
| Visualization | Polystat is available and an existing panel renders correctly |
Evidence: Capture the Grafana job status, the relevant plugin log lines, and the installed-plugin screen as implementation evidence. Do not include credentials, tokens, or confidential dashboard data in screenshots.
Troubleshooting#
| Symptom | Likely cause | Action |
|---|---|---|
| Polystat is not listed in the UI | Plugin directory was not mounted, Grafana was not restarted, or the package is not compatible | Check the container directory, Grafana version, job restart, and logs |
| Unsigned plugin is blocked | Plugin ID is missing or misspelt in the [plugins] section |
Add grafana-polystat-panel to allow_loading_unsigned_plugins, then restart Grafana |
| Plugin directory missing inside the container | Host volume mapping is incorrect or points elsewhere | Review the grafana.nomad volume mapping and confirm the host path |
| "permission denied" in the logs | Plugin files are not owned by or readable by the Grafana runtime user | Run chown -R healuser:healuser and verify the directory permissions |
| Grafana allocation is unhealthy | Configuration is invalid or Grafana failed during startup | Review nomad job status and the allocation logs; restore the template backup if required |
| Panel fails after a HEAL upgrade | Installed plugin build does not match the current Grafana version | Confirm the Grafana version and obtain the matching plugin package from Product Support |
Related: If a plugin that previously worked stops loading after a platform upgrade, see Grafana Plugin Not Loading After a HEAL Upgrade.
Roll back the change#
Rollback impact: Rollback restarts Grafana and causes another brief interruption. Use the same approved maintenance and communication process that you followed for the installation.
1. Stop the Grafana job. Go to the directory that holds grafana.nomad and stop the Grafana job using your approved procedure (see the note on -purge in Step 7 of the installation procedure).
nomad job stop -purge grafana
2. Disable the new plugin. Move the new plugin directory out of the active plugins path, keeping it for investigation until the change is closed.
mv /opt/Heal/Appsone_Service/grafana/plugins/grafana-polystat-panel \
/opt/Heal/Appsone_Service/grafana/plugins/grafana-polystat-panel.disabled
3. Restore the configuration template. Restore grafana.ini.tpl from the backup you created before the installation.
cp /opt/Heal/Appsone_Service/conf-template/grafana/grafana.ini.tpl.bak \
/opt/Heal/Appsone_Service/conf-template/grafana/grafana.ini.tpl
4. Redeploy Grafana. Validate and redeploy the Grafana Nomad job.
nomad job validate grafana.nomad
nomad job run grafana.nomad
nomad job status grafana
5. Confirm the service is healthy. Review the Grafana logs and UI to confirm that the service is healthy. If this installation replaced an older working plugin, restore the approved older plugin directory and configuration before restarting Grafana.