Set provisioning on with env variable

Grafana 12, official helm installed on EKS 1.32.

  • What are you trying to achieve?
    Set provisioning on.

  • How are you trying to achieve it?
    With env variable

  • What happened?
    nothing

  • What did you expect to happen?
    provisioning on

  • Can you copy/paste the configuration(s) that you are having problems with?

    env:
      GF_SERVER_ROOT_URL: http://grafana.monitoring.svc.cluster.local
      FEATURE_TOGGLE_ADMIN_PAGE: true
      FEATURE_TOGGLES_ENABLED: true
      FEATURE_TOGGLE_PROVISIONING: true
      GF_FEATURE_TOGGLES_ENABLE: provisioning

Grafana feature toggles are typically enabled using the GF_FEATURE_TOGGLES_<FEATURE_NAME>=true environment variable pattern, where <FEATURE_NAME> is the camelCase name of the feature

Added:
GF_FEATURE_TOGGLES_PROVISIONING: true

Still the same result. It looks like some env vars are ignored. In statrup logs:

logger=settings t=2025-05-13T14:03:10.51375378Z level=info msg="Config overridden from Environment variable" var="GF_PATHS_DATA=/var/lib/grafana/"
logger=settings t=2025-05-13T14:03:10.513843988Z level=info msg="Config overridden from Environment variable" var="GF_PATHS_LOGS=/var/log/grafana"
logger=settings t=2025-05-13T14:03:10.513928305Z level=info msg="Config overridden from Environment variable" var="GF_PATHS_PLUGINS=/var/lib/grafana/plugins"
logger=settings t=2025-05-13T14:03:10.513999657Z level=info msg="Config overridden from Environment variable" var="GF_PATHS_PROVISIONING=/etc/grafana/provisioning"
logger=settings t=2025-05-13T14:03:10.51407156Z level=info msg="Config overridden from Environment variable" var="GF_SERVER_ROOT_URL=http://grafana.monitoring.svc.cluster.local"
logger=settings t=2025-05-13T14:03:10.514139761Z level=info msg="Config overridden from Environment variable" var="GF_DATABASE_TYPE=postgres"
logger=settings t=2025-05-13T14:03:10.514222027Z level=info msg="Config overridden from Environment variable" var="GF_DATABASE_HOST=grafana.xxxx.us-east-1.rds.amazonaws.com"
logger=settings t=2025-05-13T14:03:10.514286035Z level=info msg="Config overridden from Environment variable" var="GF_DATABASE_NAME=grafana"
logger=settings t=2025-05-13T14:03:10.514360457Z level=info msg="Config overridden from Environment variable" var="GF_DATABASE_USER=grafana"
logger=settings t=2025-05-13T14:03:10.51442344Z level=info msg="Config overridden from Environment variable" var="GF_DATABASE_PASSWORD=*********"
logger=settings t=2025-05-13T14:03:10.51449581Z level=info msg="Config overridden from Environment variable" var="GF_DATABASE_SSL_MODE=require"
logger=settings t=2025-05-13T14:03:10.514566013Z level=info msg="Config overridden from Environment variable" var="GF_SECURITY_ADMIN_USER=admin"
logger=settings t=2025-05-13T14:03:10.514642076Z level=info msg="Config overridden from Environment variable" var="GF_SECURITY_ADMIN_PASSWORD=*********"
logger=settings t=2025-05-13T14:03:10.514707996Z level=info msg="Config overridden from Environment variable" var="GF_RENDERING_SERVER_URL=http://grafana-image-renderer.monitoring:8081/render"

And than:

logger=featuremgmt t=2025-05-13T14:03:16.025641033Z level=info msg=FeatureToggles ssoSettingsApi=true groupToNestedTableTransformation=true alertingNotificationsStepMode=true correlations=true tlsMemcached=true reportingUseRawTimeRange=true formatString=true addFieldFromCalculationStatFunctions=true lokiQueryHints=true logsPanelControls=true recoveryThreshold=true preinstallAutoUpdate=true alertingRuleVersionHistoryRestore=true kubernetesPlaylists=true logRowsPopoverMenu=true kubernetesClientDashboardsFolders=true newDashboardSharingComponent=true newFiltersUI=true externalCorePlugins=true pinNavItems=true cloudWatchNewLabelParsing=true awsAsyncQueryCaching=true publicDashboardsScene=true dashgpt=true alertingUIOptimizeReducer=true grafanaconThemes=true alertingInsights=true logsInfiniteScrolling=true pluginsDetailsRightPanel=true alertingQueryAndExpressionsStepMode=true alertingSimplifiedRouting=true angularDeprecationUI=true prometheusUsesCombobox=true onPremToCloudMigrations=true recordedQueriesMulti=true lokiStructuredMetadata=true unifiedStorageSearchPermissionFiltering=true azureMonitorEnableUserAuth=true lokiQuerySplitting=true transformationsRedesign=true dashboardSceneForViewers=true dataplaneFrontendFallback=true unifiedRequestLog=true dashboardSceneSolo=true cloudWatchRoundUpEndTime=true logsExploreTableVisualisation=true annotationPermissionUpdate=true promQLScope=true alertRuleRestore=true nestedFolders=true lokiLabelNamesQueryApi=true logsContextDatasourceUi=true alertingApiServer=true ssoSettingsSAML=true alertingRulePermanentlyDelete=true failWrongDSUID=true alertingRuleRecoverDeleted=true useSessionStorageForRedirection=true cloudWatchCrossAccountQuerying=true prometheusAzureOverrideAudience=true dashboardScene=true azureMonitorPrometheusExemplars=true influxdbBackendMigration=true panelMonitoring=true newPDFRendering=true

I am not seeing PROVISIONING

http://grafana.monitoring.svc.cluster.local

There is no in logs, this is what I’m talking about.

While env variable GF_FEATURE_TOGGLES_PROVISIONING: true
present in container.

I got Git Sync (i.e. also provisioning) working for the grafana/grafana:12.0.0 image by setting this in my docker-compose.yml:

    environment:
      GF_FEATURE_TOGGLES_ENABLE: "provisioning,kubernetesDashboards"

Grafana log:
msg="Config overridden from Environment variable" var="GF_FEATURE_TOGGLES_ENABLE=provisioning,kubernetesDashboards"

Docs from the grafana.ini inside the image:

[feature_toggles]
# there are currently two ways to enable feature toggles in the `grafana.ini`.
# you can either pass an array of feature you want to enable to the `enable` field or
# configure each toggle by setting the name of the toggle to true/false. Toggles set to true/false
# will take presidence over toggles in the `enable` list.

;enable = feature1,feature2

;feature1 = true
;feature2 = false

As far as I understand, only existing settings can be overwritten by environment variables, but no new settings added. Thus the latter way doesn’t work, I guess.

1 Like

Thanks, it works!

GF_FEATURE_TOGGLES_ENABLE: "provisioning,kubernetesDashboards"