prometheus-community / helm-charts

Prometheus community Helm charts
Apache License 2.0
5.17k stars 5.04k forks source link

[kube-prometheus-stack] group grafana dashboards in folders #4493

Open marcofranssen opened 7 months ago

marcofranssen commented 7 months ago

Is your feature request related to a problem ?

Give more structure to the dashboards in Grafana folders.

Describe the solution you'd like.

I would like to have a way to structure the grafana dashboards in folders.

From following chart I see 2 options:

e.g. All the Kubernetes / dashboards could go in a Kubernetes folder. Or we make it somehow configurable via option 2 using those annotations.

Maybe it is already possible with the current chart, but I can't really figure it out at the moment on how to do that. In that case some documentation might be great to tell users of the chart how to do this.

Anyone with more deep knowledge in this chart who knows how to achieve that?

Describe alternatives you've considered.

Provisioning all the dashboards myself and disable the default shipped dashboards.

Additional context.

No response

jkroepke commented 7 months ago

Lets wait for Grafana 11, then we may able to benefit from the sub-folder structor. What did you think about?

marcofranssen commented 7 months ago

Lets wait for Grafana 11, then we may able to benefit from the sub-folder structor. What did you think about?

If that makes it easier. Would already be happy to group some stuff in one level of folders.

jkroepke commented 7 months ago

Grafana 11 release is less then four weeks, dated for mid may.

johanjino commented 6 months ago

At the moment is there a way to disable the default shipped dashboards?

jkroepke commented 6 months ago

Set grafana.defaultDashboardsEnabled=false in values

And Grafana 11 released today. https://github.com/grafana/grafana/releases

emerconn commented 4 months ago

I'd also benefit from this feature 😄 would love to organize my dashboards in folders.

martinrw commented 3 months ago

overlaps with https://github.com/prometheus-community/helm-charts/issues/3160

robinderooij-rl commented 1 month ago

Just put the following in your values.yaml:

grafana:
  sidecar:
    dashboards:
      annotations:
        grafana_folder: "kubernetes"
      folderAnnotation: "grafana_folder"
     provider:
       foldersFromFilesStructure: true

Your custom dashboards can be organized by using the grafana_folder label in your configmap.

sstewart-alterra commented 3 weeks ago

For more detail on @robinderooij-rl's answer, there's another comment here that I found helpful: https://github.com/grafana/helm-charts/issues/527#issuecomment-982319638

gera-corp commented 2 weeks ago
grafana:
  sidecar:
    dashboards:
      annotations:
        grafana_folder: "kubernetes"
      folderAnnotation: "grafana_folder"
      provider:
        foldersFromFilesStructure: true