[questions] GrafanaDashboard spec.envs & spec.plugins
#2124
Unanswered
DrummyFloyd
asked this question in
Q&A
Replies: 1 comment 1 reply
-
|
seems to be doable upon the next release |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Environment:
Description:
I have two questions regarding the
GrafanaDashboardCRD functionality:1. Plugin Version Management
It seems impossible to use latest for plugins version, is it a wanted behaviour ?
NB:
2. Environment Variable Substitution with
grafanaComImportsCurrent Issue: Environment variable substitution via
spec.envsappears to only work withjsonnetdashboards, but not with dashboards imported viagrafanaCom.id.Expected Behavior: Environment variables defined in
spec.envsshould be substituted in dashboards imported from grafana.com, similar to how they work injsonnetdashboards.Example:
The imported dashboard (ID: 10620) contains template variables that reference environment variables:
{ "current": { "text": "${VAR_GITLAB_HOST}", "value": "${VAR_GITLAB_HOST}" }, "hide": 2, "name": "GITLAB_HOST", "query": "${VAR_GITLAB_HOST}", "skipUrlSync": true, "type": "constant" }My CRD configuration:
Current Result: The
${VAR_GITLAB_HOST}placeholders in the imported dashboard are not being replaced with the value fromspec.envs.Questions:
spec.envsintended to work only withjsonnetdashboards?grafanaComimports?grafanaComand directjsondashboard definitions?thank you for you hardwork
Beta Was this translation helpful? Give feedback.
All reactions