-
What Grafana version and what operating system are you using?
Grafana 10.3.6, Ubuntu 20.04.6 LTS -
What are you trying to achieve?
Install Grafana and its plugins on an offline station. -
How are you trying to achieve it?
Build a custom Grafana image, using in Dockerfile command for plugin installation, like it define
here -
What happened?
After the Helm installation, the plugin does not get installed, and the plugin files disappear from the container (custom Grafana image contains them) -
What did you expect to happen?
Plugin is installed with Grafana -
Can you copy/paste the configuration(s) that you are having problems with?
Dockerfile:
FROM grafana/grafana:10.3.6
# Remove / disable these to require authentication
ENV GF_AUTH_DISABLE_LOGIN_FORM "true"
ENV GF_AUTH_ANONYMOUS_ENABLED "true"
ENV GF_AUTH_ANONYMOUS_ORG_ROLE "Admin"
# Install a specific plugin
RUN grafana cli plugins install marcusolsson-json-datasource 1.3.12
USER grafana
ENTRYPOINT /bin/bash
I added following definitions to helm chart to avoid online signing and checks:
env:
GF_PLUGINS_ALLOW_LOADING_UNSIGNED_PLUGINS: "marcusolsson-json-datasource"
GF_PLUGINS_VERIFY_SIGNATURES: "false"
grafana.ini:
paths:
plugins: /var/lib/grafana/plugins
analytics:
check_for_updates: false
check_for_plugin_updates: false
plugins:
public_key_retrieval_disabled: true
Grafana logs after installation, no errors exist in log file, it is running but no plugins were installed:
logger=settings t=2024-05-15T13:17:03.358987705Z level=info msg="Config overridden from command line" arg="default.paths.plugins=/var/lib/grafana/plugins"
logger=settings t=2024-05-15T13:17:03.359083404Z level=info msg="Config overridden from Environment variable" var="GF_PATHS_PLUGINS=/var/lib/grafana/plugins"
logger=settings t=2024-05-15T13:17:03.359314401Z level=info msg="Path Plugins" path=/var/lib/grafana/plugins
logger=plugin.store t=2024-05-15T13:17:06.440327823Z level=info msg="Loading plugins..."
logger=local.finder t=2024-05-15T13:17:06.461045698Z level=warn msg="Skipping finding plugins as directory does not exist" path=/usr/share/grafana/plugins-bundled
logger=plugin.store t=2024-05-15T13:17:06.461143886Z level=info msg="Plugins loaded" count=55 duration=20.816473ms
logger=context userId=0 orgId=1 uname= t=2024-05-15T13:18:27.550529428Z level=error msg="Could not find plugin definition for data source" datasource_type=marcusolsson-json-datasource
when I add to helm chart:
plugins:
- marcusolsson-json-datasource 1.3.14
Grafana is topped by error with log:
Error: ✗ Get "https://grafana.com/api/plugins/marcusolsson-json-datasource/versions": dial tcp: lookup grafana.com on 10.152.183.10:53: server misbehaving
- Did you follow any online instructions? If so, what is the URL?
fourkeys/dashboard/Dockerfile at d1bfdd6e37627174ad4fc521ba2b5279a2f281a2 · dora-team/fourkeys · GitHub