Comments (4)
starred dashboards can be added as default dashboards. In our case we can assume there is only one org in grafana, and assign our dashboard as the default to the org, that way any users the customer creates lands on the same home page
Process is as follows (with curl);
get the at-a-glance dashboard
extract the dashboards id (mine was 16)
star the dashboard with
curl -u admin:admin -H "Content-Type: application/json" -X POST http://localhost:3000/api/user/stars/dashboard/16
update the org using a json file (org.json)
{
"name":"Main Org.",
"homeDashboardId":16
}
then
curl -u admin@localhost:admin -H "Content-Type: application/json" -X PUT http://localhost:3000/api/org/preferences --data @org.json
If these steps can be confirmed we could add this to the dashUpdater code.
@zmc when you get a chance can you please confirm the above
from cephmetrics.
$ curl -u admin:admin http://XXX:3000/api/dashboards/db/ceph-at-a-glance | jq '.["dashboard"]["id"]'
12
$ curl -u admin:admin -X POST -H "Content-Type: application/json" http://XXX:3000/api/user/stars/dashboard/12
{"message":"Failed to star dashboard"}
Edit: It was already starred! Unstarred and retried, and it worked. Will update with the rest of the steps in a sec
Update: It worked!
$ curl -u admin:admin -H "Content-Type: application/json" -X PUT http://XXX:3000/api/org/preferences --data @/tmp/org.json
{"message":"Preferences updated"}
from cephmetrics.
@zmc I've updated dashUpdater to handle this now. will push tommorrow
from cephmetrics.
commit 9772526 adds this functionality
from cephmetrics.
Related Issues (20)
- Network utilization filters out standard 10GbE device names HOT 2
- Prometheus dashboards are tied to "Local" datasource HOT 4
- Per-OSD dashboard should include read and write latency HOT 3
- ceph-mgr role should also open port 9283 HOT 2
- optionally enable port 9090 on the prometheus container HOT 2
- health alert only triggers on first state change HOT 2
- rgw collector not working HOT 9
- OSD collector does not detect encrypted bluestore devices HOT 1
- templates parse error at character 6 HOT 3
- missing OSD hosts specific data HOT 8
- ceph-iscsi data missing HOT 4
- RFE: please support dnf HOT 1
- Dashboards are using TestData
- merge_vars.yml does not allow for extravars
- Ansible role ceph-mgr name is colliding with same name in ceph-ansible
- Replacing usage of group 'all' by dynamic generated group containing all ceph groups HOT 1
- RGW Buckets metrics
- The error was: 'collectd_dir' is undefined HOT 2
- dict object has no attribute ceph-grafana
- Is this project dead?
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 cephmetrics.