github.com/masterhung0112/hk_server/v5@v5.0.0-20220302090640-ec71aef15e1c/build/docker/grafana/dashboards/README.md (about)

     1  # Developer Dashboards
     2  
     3  This folder contains a modified form of the following Grafana dashboards:
     4  * [Mattermost Performance Monitoring](https://grafana.com/grafana/dashboards/2542)
     5  * [Mattermost Performance Monitoring (Bonus Metrics)](https://grafana.com/grafana/dashboards/2545)
     6  * [Mattermost Performance KPI Metrics](https://grafana.com/grafana/dashboards/2539)
     7  
     8  The dashboards are modified from the version available on grafana.com since [Grafana doesn't currently support variables](https://github.com/grafana/grafana/issues/10786) (i.e. `${DS_MATTERMOST}`) and has no way of binding the datasource with the dashboards at the time of provisioning. Instead of falling back to the REST API to effect these changes, the following in-place changes were made to the exported dashboards available above:
     9  * Remove the top-level `__inputs` key
    10  * Remove the top-level `__requires` key
    11  * Replace all instances of `${DS_MATTERMOST}` with `Prometheus`, matching the name of the provisioned datasource.
    12  
    13  Upon using the dashboards within Grafana however, it immediately adds various missing fields, presumably due to some internal migration. This results in a spurious prompt to "save" the dashboard. To avoid confusion, these changes were subsequently exported and written back into the provisioned dashboards above.
    14  
    15  This entire process above will need to be repeated in the event newer versions of these dashboards are published.