Skip to content

Conversation

@jheredianet
Copy link
Contributor

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.

dbinfo

@netlify
Copy link

netlify bot commented Mar 7, 2025

Deploy Preview for teslamate ready!

Name Link
🔨 Latest commit 48c206a
🔍 Latest deploy log https://app.netlify.com/sites/teslamate/deploys/67cae992b34e700008fc9410
😎 Deploy Preview https://deploy-preview-4578--teslamate.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

@swiffer
Copy link
Collaborator

swiffer commented Mar 7, 2025

Thanks adding it here, i like it, especially as teslamate is self-hosted giving users some insights is valuable!

@jheredianet
Copy link
Contributor Author

Thanks, adding it here, i like it, especially as teslamate is self-hosted giving users some insights is valuable!
Thank you too for the contributions made to this and other dashboards in my Custom Dashboards repository.

@JakobLichterfeld JakobLichterfeld added enhancement New feature or request area:dashboard Related to a Grafana dashboard labels Mar 8, 2025
@JakobLichterfeld
Copy link
Member

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.

@swiffer
Copy link
Collaborator

swiffer commented Mar 8, 2025

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!

@JakobLichterfeld
Copy link
Member

JakobLichterfeld commented Mar 9, 2025

Will test on slow HW before merging

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

@JakobLichterfeld JakobLichterfeld changed the title Database Information Dashboard feat: add Database Information Dashboard Mar 9, 2025
@JakobLichterfeld JakobLichterfeld merged commit ab47b14 into teslamate-org:master Mar 9, 2025
15 checks passed
@swiffer
Copy link
Collaborator

swiffer commented Mar 9, 2025

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 ?

@jheredianet
Copy link
Contributor Author

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.

@jheredianet jheredianet deleted the feature/new-dbinfo-dashboard branch March 9, 2025 11:33
@JakobLichterfeld
Copy link
Member

JakobLichterfeld commented Mar 9, 2025

i would stick with what we have currently ?

Me too, that's why I merged :-)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area:dashboard Related to a Grafana dashboard enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants