Giter Club home page Giter Club logo

Comments (10)

karlskewes avatar karlskewes commented on May 10, 2024 9

Be great to be able to specify Grafana dashboard folder when specifying dashboard to load in the following block somewhere/somehow.

  grafanaDashboards+:: {
    'my-dashboard.json': (import 'example-grafana-dashboard.json'),
  },

from kube-prometheus.

brancz avatar brancz commented on May 10, 2024 3

Right I meant how should Grafana know to only delete/overwrite those dashboards instead of all. If the folder solves things I'm more than happy with going for that. If I recall correctly @metalmatze wanted to organize the dashboards in folders anyways.

from kube-prometheus.

brancz avatar brancz commented on May 10, 2024

My suggestion is: Create a "kube-prometheus" folder in grafana, and keep in it every kube-prometheus related dashboard, and in each deploy only overwrite this folder (or other defined folders)

I think this is rather something you need to discuss with the Grafana folks, as I think that's just not how the provisioning feature of Grafana works.

from kube-prometheus.

jalberto avatar jalberto commented on May 10, 2024

Actually you can set a folder and a organization in the provider:

http://docs.grafana.org/administration/provisioning/#dashboards

from kube-prometheus.

jalberto avatar jalberto commented on May 10, 2024

I can think of a series of folders:

  • foo (kube-prometheus)
  • bar (kube-prometheus)

So on dos it's mention those folder are overwritten each time.

Another option is to use tags, with similar approach

from kube-prometheus.

brancz avatar brancz commented on May 10, 2024

I'm not exactly sure I understand, but if you can find a way that works for all users I'm happy with accepting that.

from kube-prometheus.

jalberto avatar jalberto commented on May 10, 2024

So the idea will be dashbaord being provided by grafana provisioner like this:

apiVersion: 1

providers:
- name: 'kube-prometheus'
  orgId: 1
  folder: 'kube-prometheus_dont-touch'
  type: file
  disableDeletion: false
  updateIntervalSeconds: 3
  options:
    path: /var/lib/grafana/dashboards

That way only dashboards in that folder will be overwritten

from kube-prometheus.

brancz avatar brancz commented on May 10, 2024

If that works I’m more than happy with that approach.

from kube-prometheus.

stale avatar stale commented on May 10, 2024

This issue has been automatically marked as stale because it has not had any activity in last 60d. Thank you for your contributions.

from kube-prometheus.

paulfantom avatar paulfantom commented on May 10, 2024

Closing due to staleness. Please reopen if you think this is still relevant.

from kube-prometheus.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.