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.
My folder structure currently looks like such:
kube-prometheus-stack
charts
grafana
templates
env
dev
dashboard1-cm.yaml
dashboard2-cm.yaml
staging
prod
all-environments
I'd like to deploy dev dashboards to dev, staging to staging and so on.
I've been browsing https://github.com/kiwigrid/k8s-sidecar but haven't been able to figure out a good pattern to handle this.
Curious how others are doing this.