grafana/grafana-docker

grafana datasources yaml doesn't support environment value

like-inspur opened this issue · 2 comments

I create a grafana instance with grafana/grafana:5.1.2 image. I want to config different datasources for different grafana. So I config a datasources.yaml under /etc/grafana/provisioning like this:
apiVersion: 1

datasources:

  • name: Prometheus
    type: prometheus
    access: proxy
    url: http://$PROMETHEUS_SERVER:9090

And I create an environment value for $PROMETHEUS_SERVER,but no value on grafana web page.
1
2

@tail @torkelo @pjenvey @Dieterbe @bobrik

there is a feature request for this in Grafana repo I think

xlson commented

This feature request has been moved to the main Grafana repository grafana/grafana#12896