title: Pattern for deploying dashboards using kube prometheus stack's grafana dashboard sidecar
body: <p>I am trying to get kube prometheus stack's grafana dashboard sidecar to deploy dashboards depending on the environment (dev, staging, prod, all environments). I can't quite figure out a good way to do this.</p>
  <p>My folder structure currently looks like such:</p>
  <pre><code>kube-prometheus-stack
    charts
      grafana
        templates
          env
            dev
              dashboard1-cm.yaml
              dashboard2-cm.yaml
            staging
            prod
            all-environments
  </code></pre>
  <p>I'd like to deploy dev dashboards to dev, staging to staging and so on.</p>
  <p>I've been browsing <a href="https://github.com/kiwigrid/k8s-sidecar" rel="nofollow noreferrer">https://github.com/kiwigrid/k8s-sidecar</a> but haven't been able to figure out a good pattern to handle this.</p>
  <p>Curious how others are doing this.</p>