You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It would be nice if wizzy can load json files containing environment variables. This is useful for conf/wizzy.json and datasources.
The conf/wizzy.json file would look like:
It would be nice if wizzy can load json files containing environment variables. This is useful for conf/wizzy.json and datasources.
The
conf/wizzy.jsonfile would look like:{ "config": { "grafana": { "url": "https://mygrafana.example.com", "username": "${ADMIN_USERNAME}", "password": "${ADMIN_PASSWORD}" } } }Example of a datasource
datasources/my-influxdb.json:{ "orgId": 1, "name": "my-influxdb", "type": "influxdb", "url": "http://localhost:8086", "user": "${DB_USER}", "password": "${DB_PASSWORD}", "database": "${DB_NAME}" }It can achieved e.g. with Mustache.js.
FYI, Grafana support using environment variables in its config file: cf. https://grafana.com/docs/installation/configuration/#using-environment-variables