-
Notifications
You must be signed in to change notification settings - Fork 882
feat: add Database Information Dashboard #4578
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat: add Database Information Dashboard #4578
Conversation
✅ Deploy Preview for teslamate ready!
To edit notification comments on pull requests, go to your Netlify site configuration. |
|
Thanks adding it here, i like it, especially as teslamate is self-hosted giving users some insights is valuable! |
|
|
Ty, much appreciated. Will test on slow HW before merging, as currently all dashboard queries are optimized to run on slow HW I would like to keep this state. |
Thanks, should be fast as well but give it a try! |
Table Name | Row count is a bit slow, but 3-5s is acceptable imo for a maintenance dashboard. First run on the query took about 12.8s which is aweful |
|
there seems to be no other way except counting rows for each table which indeed can be slow... row estimates could be used instead but these can be up to 10% off SELECT reltuples::bigint
FROM pg_catalog.pg_class
WHERE relname = 'positions';i would stick with what we have currently ? |
I would leave it as it is now. |
Me too, that's why I merged :-) |
This is a new contribution. A dashboard which could be helpful to browse database information: size, number of records, indexes, and generic data on drives and charges.
Once this PR is accepted, I'll remove it from the Custom Grafana Dashboards repository.