Files
mostlymatter/server/build/docker/grafana/dashboards
Jesse Hallam 617053e206 configure Loki for local development (#26997)
* configure Loki for local development

Extend our docker compose setup to include Loki (along with promtail), scraping `logs/*.log` to ingest development logs as well as all logs from running containers.

While we're in here, teach Prometheus to scrape metrics from Docker containers too.

* tweak promtail labels

* document extra services in config.mk

* update home.json
2024-05-16 12:16:08 -03:00
..
2023-03-22 17:22:27 -04:00
2023-03-22 17:22:27 -04:00

Developer Dashboards

This folder contains a modified form of the following Grafana dashboards:

The dashboards are modified from the version available on grafana.com since Grafana doesn't currently support variables (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:

  • Remove the top-level __inputs key
  • Remove the top-level __requires key
  • Replace all instances of ${DS_MATTERMOST} with Prometheus, matching the name of the provisioned datasource.

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.

This entire process above will need to be repeated in the event newer versions of these dashboards are published.