Closed forzagreen closed 4 years ago
Well, I close since a similar solution is implemented using envs
and context
:
# configure 2 environments:
wizzy set grafana envs DEV url "http://grafana.mydev.com"
wizzy set grafana envs PROD url "http://grafana.myprod.com"
# list dashboards in DEV:
wizzy set context grafana DEV
wizzy list dashboards
# list dashboards in PROD:
wizzy set context grafana PROD
wizzy list dashboards
Thanks
The configuration file is fixed as
conf/wizzy.json
here:https://github.com/grafana-wizzy/wizzy/blob/5e6b09ba680c40f8f5d134976de2de524a5af6be/src/util/config.js#L8-L9
It will be very useful to have many configuration files, and to pass the configuration file to be used as an environment variable or as a parameter:
or