Comments (10)
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.
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.
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.
Actually you can set a folder and a organization in the provider:
http://docs.grafana.org/administration/provisioning/#dashboards
from kube-prometheus.
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.
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.
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.
If that works I’m more than happy with that approach.
from kube-prometheus.
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.
Closing due to staleness. Please reopen if you think this is still relevant.
from kube-prometheus.
Related Issues (20)
- 怎么修改Prometheus全局配置
- how to add new relabel_configs and metric_relabel_configs for job_name monitoring/kube-state-metrics/0 and job_name monitoring/kube-state-metrics/1 HOT 1
- How to add and modify existing scrape_configs to existing kube-prometheus HOT 1
- done HOT 8
- Prometheus stack not respecting retention
- how to not use cpu requst & limit ? HOT 1
- Appears to be an issue with the Grafana grid.libsonnet HOT 3
- Support the Gateway API
- forgot grafana password,How can I changeit
- persistent volume monitor
- Decrease value of limit before "Namespace quota is going to be full.
- Warning - 'bearerTokenFile' is deprecated HOT 1
- Request for Guidance on Deploying kube-prometheus Using ArgoCD
- Easily configure arguments of node exporter
- kube-prometheus-release-0.13 不能与rancher 同时部署吗
- ./build.sh example.jsonnet HOT 2
- Error in grafonnet HOT 1
- upgrade node-exporter to v1.8.0
- Grafana not reachable after setup
- example dashboards use angular which is depreciated in grafana
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from kube-prometheus.