Description
In the dashboard filters, we can select only one Instance (host machine) on the dashboard, but multiple Database (PG database server instance). This make me conclude that the dashboard was designed also for cases when multiple PostgreSQL databases may run on the same host. However, the current solution also has a flaw: I can select an incorrect Database for a given Instance. As a result, the graphs will become empty or show "no data" (N/A). This is especially confusing if someone (accidentally) saves the dashboard with a non-All default for Database. I would like to prevent this confusion from happening.
For this reason, I think the dashboard should be adapted so that there is a clear "has" relationship between Instance and Database, or in other words: either selecting an Instance should refresh the selectable Database values, or selecting a Database should refresh the available Instances. This would then require the use of Chained Variables, and the order of variables would start to matter.
I tried to implement this improvement for myself, but for some reason nothing I tried work. After hours of trying I gave up. Given I'm no Grafana expert, I thought maybe you can help, but not for me personally, of course. It could be a great improvement for the template itself.
Thanks for considering!